diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index 974a69b24..1eac45494 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -1524,7 +1524,6 @@ RED.nodes = (function() { groupsByZ = {}; var subflowIds = Object.keys(subflows); - subflows = {}; subflowIds.forEach(function(id) { RED.subflow.removeSubflow(id) }); diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js index b60cbe991..8eda5f5b7 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js @@ -463,15 +463,15 @@ RED.subflow = (function() { var activeSubflow = RED.nodes.subflow(id); RED.nodes.eachNode(function(n) { - if (n.type == "subflow:"+activeSubflow.id) { + if (n.type == "subflow:"+id) { removedNodes.push(n); } - if (n.z == activeSubflow.id) { + if (n.z == id) { removedNodes.push(n); } }); RED.nodes.eachConfig(function(n) { - if (n.z == activeSubflow.id) { + if (n.z == id) { removedNodes.push(n); } }); diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js index 28ef2f74d..ec06808e7 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js @@ -3,14 +3,13 @@ RED.sidebar.info.outliner = (function() { var treeList; var searchInput; var projectInfo; + var projectInfoLabel; var flowList; var subflowList; var globalConfigNodes; var objects = {}; - var objectBacklog = {}; - function getFlowData() { var flowData = [ { @@ -187,8 +186,11 @@ RED.sidebar.info.outliner = (function() { } function onProjectLoad(activeProject) { + objects = {}; var newFlowData = getFlowData(); - getProjectLabel(activeProject).appendTo(projectInfo); + projectInfoLabel.empty(); + getProjectLabel(activeProject).appendTo(projectInfoLabel); + projectInfo.show(); treeList.treeList('data',newFlowData); } @@ -223,7 +225,8 @@ RED.sidebar.info.outliner = (function() { } }); - projectInfo = $('