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:
parent
dec82589d1
commit
6d737b9e4c
@ -391,15 +391,15 @@ RED.sidebar.info.outliner = (function() {
|
|||||||
if (parent.children.length === 0) {
|
if (parent.children.length === 0) {
|
||||||
parent.treeList.addChild(getEmptyItem(parent.id));
|
parent.treeList.addChild(getEmptyItem(parent.id));
|
||||||
}
|
}
|
||||||
if (existingObject.children && (existingObject.children.length > 0)) {
|
// if (existingObject.children && (existingObject.children.length > 0)) {
|
||||||
existingObject.children.forEach(function (nc) {
|
// existingObject.children.forEach(function (nc) {
|
||||||
if (!nc.empty) {
|
// if (!nc.empty) {
|
||||||
var childObject = objects[nc.id];
|
// var childObject = objects[nc.id];
|
||||||
nc.parent = parent;
|
// nc.parent = parent;
|
||||||
objects[parent.id].treeList.addChild(childObject);
|
// objects[parent.id].treeList.addChild(childObject);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
function getGutter(n) {
|
function getGutter(n) {
|
||||||
var span = $("<span>",{class:"red-ui-info-outline-gutter"});
|
var span = $("<span>",{class:"red-ui-info-outline-gutter"});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user