From 6a679ab83615761950e4ba656a543bc32364b7df Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Wed, 20 Feb 2019 16:44:38 +0100 Subject: [PATCH] check if editedNode exists --- js/app/models/InteractiveNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app/models/InteractiveNode.js b/js/app/models/InteractiveNode.js index 0efdd1e..9f23131 100644 --- a/js/app/models/InteractiveNode.js +++ b/js/app/models/InteractiveNode.js @@ -578,7 +578,7 @@ Ext.define('amdaModel.InteractiveNode', { isThisFile = true; // node was created BEFORE tree loading; node.id are different ; but it is the same node - if ( editedNode.get('id') == me.get('id') && editedNode !== me ) { + if ( editedNode && editedNode.get('id') == me.get('id') && editedNode !== me ) { module.setLinkedNode(me); isThisFile = true; } -- libgit2 0.21.2