Commit 6a679ab83615761950e4ba656a543bc32364b7df

Authored by Elena.Budnik
1 parent 6fbcceba

check if editedNode exists

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
js/app/models/InteractiveNode.js
... ... @@ -578,7 +578,7 @@ Ext.define('amdaModel.InteractiveNode', {
578 578 isThisFile = true;
579 579  
580 580 // node was created BEFORE tree loading; node.id are different ; but it is the same node
581   - if ( editedNode.get('id') == me.get('id') && editedNode !== me ) {
  581 + if ( editedNode && editedNode.get('id') == me.get('id') && editedNode !== me ) {
582 582 module.setLinkedNode(me);
583 583 isThisFile = true;
584 584 }
... ...