Merge "Bug 161 - Deleting an item that was being edited did not clear the canvas...
authorkashalkar <kiran.kashalkar@riftio.com>
Wed, 22 Mar 2017 19:02:22 +0000 (20:02 +0100)
committerGerrit Code Review <root@osm.etsi.org>
Wed, 22 Mar 2017 19:02:22 +0000 (20:02 +0100)
skyquake/plugins/composer/src/src/stores/ComposerAppStore.js

index b23db5c..c07fffd 100644 (file)
@@ -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);