diff --git a/app/assets/javascripts/app/lib/collection.js.coffee b/app/assets/javascripts/app/lib/collection.js.coffee index e6a35e3a0..7586e4d3d 100644 --- a/app/assets/javascripts/app/lib/collection.js.coffee +++ b/app/assets/javascripts/app/lib/collection.js.coffee @@ -89,6 +89,9 @@ class _Singleton reset: (params) -> console.log( 'reset', params ) + # empty in-memory + App[ params.type ].refresh( [], { clear: true } ) + # remove permanent storage list = App.Store.list() for key in list @@ -96,9 +99,6 @@ class _Singleton if parts[0] is 'collection' && parts[1] is params.type App.Store.delete(key) - # empty in-memory - App[ params.type ].refresh( [], { clear: true } ) - # load with new data @load(params)