Fixed race condition and improved performance: Refresh models after all new records of _all_ types were added instead of current model only.

This commit is contained in:
Thorsten Eckel 2018-06-20 15:59:11 +02:00
parent 798add3642
commit 6ff324094c

View file

@ -74,9 +74,9 @@ class _collectionSingleton extends Spine.Module
if !_.isEmpty(later) if !_.isEmpty(later)
loadAssetsLater[type] = later loadAssetsLater[type] = later
# process existing assets # process existing assets
for type, collections of loadAssetsLater for type, collections of loadAssetsLater
App[type].refresh(collections) App[type].refresh(collections)
if params.targetModel if params.targetModel
for type, collections of assets for type, collections of assets