From: Bob Gallagher Date: Tue, 21 Mar 2017 21:21:11 +0000 (-0400) Subject: Bug 161 - Deleting an item that was being edited did not clear the canvas X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F1344%2F1;p=osm%2FUI.git Bug 161 - Deleting an item that was being edited did not clear the canvas - fix exception Change-Id: I4fe2d9b6f72a680df3ed5c1b303fb244832682a0 Signed-off-by: Bob Gallagher --- 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);