From 8503cee5035154ea980a33cf6eddcec54fbead8b Mon Sep 17 00:00:00 2001 From: Bob Gallagher Date: Tue, 21 Mar 2017 17:21:11 -0400 Subject: [PATCH] Bug 161 - Deleting an item that was being edited did not clear the canvas - fix exception Change-Id: I4fe2d9b6f72a680df3ed5c1b303fb244832682a0 Signed-off-by: Bob Gallagher --- skyquake/plugins/composer/src/src/stores/ComposerAppStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skyquake/plugins/composer/src/src/stores/ComposerAppStore.js b/skyquake/plugins/composer/src/src/stores/ComposerAppStore.js index b23db5c06..c07fffd64 100644 --- a/skyquake/plugins/composer/src/src/stores/ComposerAppStore.js +++ b/skyquake/plugins/composer/src/src/stores/ComposerAppStore.js @@ -241,7 +241,9 @@ class ComposerAppStore { } SelectionManager.select(item); this.updateItem(item); - this.openFileManagerSockets(item) + if (item) { + this.openFileManagerSockets(item); + } } catalogItemMetaDataChanged(item) { this.updateItem(item); -- 2.25.1