diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetController.js index 327b665b5836f51834eabf5c8ae0604046d0533c..a28fd72a8df730c4dc0b31c1537b45919dddea9a 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetController.js @@ -1,4 +1,4 @@ -/* + /* * Copyright 2014 ETH Zuerich, Scientific IT Services * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -39,11 +39,13 @@ function SideMenuWidgetController(mainController) { this.deleteNodeByEntityPermId = function(key, isMoveToParent) { var node = $(this._sideMenuWidgetModel.tree).fancytree('getTree').getNodeByKey(key); - if(isMoveToParent) { - var parent = node.getParent(); - this._showNodeView(parent); - } - node.remove(); + if (node) { + if(isMoveToParent) { + var parent = node.getParent(); + this._showNodeView(parent); + } + node.remove(); + } }; this.refreshCurrentNode = function() {