From 306c4b70171e18400c9a56dc11069fe1680fb17b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 27 Oct 2016 08:43:39 +0200 Subject: [PATCH] Only trigger if record_ids exists. --- app/assets/javascripts/app/models/_application_model.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/models/_application_model.coffee b/app/assets/javascripts/app/models/_application_model.coffee index 62418da50..29be7f712 100644 --- a/app/assets/javascripts/app/models/_application_model.coffee +++ b/app/assets/javascripts/app/models/_application_model.coffee @@ -545,7 +545,7 @@ class App.Model extends Spine.Model App.Collection.loadAssets(data.assets) # 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', []) # find / load object