From e7d1cbd5cac595142aabf94f3f2c4e83646b1488 Mon Sep 17 00:00:00 2001 From: David <44263817+mozkomor05@users.noreply.github.com> Date: Mon, 3 Oct 2022 20:17:31 +0200 Subject: [PATCH] setup action views in modal with unset model (#2462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David Moškoř --- client/src/views/modals/detail.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js index 08e874e5e0..3430bb754b 100644 --- a/client/src/views/modals/detail.js +++ b/client/src/views/modals/detail.js @@ -188,7 +188,10 @@ define('views/modals/detail', ['views/modal', 'helpers/action-item-setup'], func this.trigger('model-sync'); }); - this.listenToOnce(this.model, 'sync', () => this.createRecordView()); + this.listenToOnce(this.model, 'sync', () => { + this.setupActionItems(); + this.createRecordView(); + }); this.model.fetch();