1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Remove unneeded code on object delete in outliner

See https://github.com/node-red/node-red/pull/2578#discussion_r434163293
This commit is contained in:
Nick O'Leary 2020-06-02 22:53:34 +01:00
parent dec82589d1
commit 6d737b9e4c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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 = $("<span>",{class:"red-ui-info-outline-gutter"});