From fb8adc6491c8cadc9fa6299cdcc3084fb5824f93 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Wed, 2 May 2018 14:53:26 +0100 Subject: [PATCH] Prevent ember actions on destroyed objects --- gui/app/components/toolbar/nav-bar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/app/components/toolbar/nav-bar.js b/gui/app/components/toolbar/nav-bar.js index 9ae55abf..1c2fcaf4 100644 --- a/gui/app/components/toolbar/nav-bar.js +++ b/gui/app/components/toolbar/nav-bar.js @@ -54,6 +54,7 @@ export default Component.extend(ModalMixin, { type: 'GET', dataType: 'html', success: function (response) { + if (self.get('isDestroyed') || self.get('isDestroying')) return; self.set('newsContent', response); } });