From 6d737b9e4c78002252e9abc6446a983ac62f1988 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 2 Jun 2020 22:53:34 +0100 Subject: [PATCH] Remove unneeded code on object delete in outliner See https://github.com/node-red/node-red/pull/2578#discussion_r434163293 --- .../src/js/ui/tab-info-outliner.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 ccecfd043..7b3ab2c9f 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 @@ -391,15 +391,15 @@ RED.sidebar.info.outliner = (function() { if (parent.children.length === 0) { parent.treeList.addChild(getEmptyItem(parent.id)); } - if (existingObject.children && (existingObject.children.length > 0)) { - existingObject.children.forEach(function (nc) { - if (!nc.empty) { - var childObject = objects[nc.id]; - nc.parent = parent; - objects[parent.id].treeList.addChild(childObject); - } - }); - } + // if (existingObject.children && (existingObject.children.length > 0)) { + // existingObject.children.forEach(function (nc) { + // if (!nc.empty) { + // var childObject = objects[nc.id]; + // nc.parent = parent; + // objects[parent.id].treeList.addChild(childObject); + // } + // }); + // } } function getGutter(n) { var span = $("",{class:"red-ui-info-outline-gutter"});