From 6ff324094c06e7b3f08646bda063ed0043cab7e5 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 20 Jun 2018 15:59:11 +0200 Subject: [PATCH] Fixed race condition and improved performance: Refresh models after all new records of _all_ types were added instead of current model only. --- app/assets/javascripts/app/lib/app_post/collection.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/collection.coffee b/app/assets/javascripts/app/lib/app_post/collection.coffee index 3a0813029..815ba5734 100644 --- a/app/assets/javascripts/app/lib/app_post/collection.coffee +++ b/app/assets/javascripts/app/lib/app_post/collection.coffee @@ -74,9 +74,9 @@ class _collectionSingleton extends Spine.Module if !_.isEmpty(later) loadAssetsLater[type] = later - # process existing assets - for type, collections of loadAssetsLater - App[type].refresh(collections) + # process existing assets + for type, collections of loadAssetsLater + App[type].refresh(collections) if params.targetModel for type, collections of assets