Only trigger if record_ids exists.

This commit is contained in:
Martin Edenhofer 2016-10-27 08:43:39 +02:00
parent 84ca669ee9
commit 306c4b7017

View file

@ -545,7 +545,7 @@ class App.Model extends Spine.Model
App.Collection.loadAssets(data.assets) App.Collection.loadAssets(data.assets)
# in case of no record_ids are there, no inital render is fired # in case of no record_ids are there, no inital render is fired
if _.isEmpty(data.record_ids) if data.record_ids && _.isEmpty(data.record_ids)
App[@className].trigger('refresh', []) App[@className].trigger('refresh', [])
# find / load object # find / load object