Bug 161 - Deleting an item that was being edited did not clear the canvas 44/1344/1
authorBob Gallagher <bob.gallagher@riftio.com>
Tue, 21 Mar 2017 21:21:11 +0000 (17:21 -0400)
committerBob Gallagher <bob.gallagher@riftio.com>
Tue, 21 Mar 2017 21:21:11 +0000 (17:21 -0400)
- fix exception

Change-Id: I4fe2d9b6f72a680df3ed5c1b303fb244832682a0
Signed-off-by: Bob Gallagher <bob.gallagher@riftio.com>
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);