Bug 161 - Deleting an item that was being edited did not clear the canvas
[osm/UI.git] / 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);