mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix reparenting nodes in outliner when they change
This commit is contained in:
parent
0cc944dc5a
commit
c171088838
@ -409,7 +409,11 @@ RED.sidebar.info.outliner = (function() {
|
||||
} else {
|
||||
existingObject.element.find(".red-ui-info-outline-item-label").html(" ");
|
||||
}
|
||||
if (parent !== existingObject.parent.parent.flow) {
|
||||
var existingParent = existingObject.parent.id;
|
||||
if (!existingParent) {
|
||||
existingParent = existingObject.parent.parent.flow
|
||||
}
|
||||
if (parent !== existingParent) {
|
||||
var parentItem = existingObject.parent;
|
||||
existingObject.treeList.remove(true);
|
||||
if (parentItem.children.length === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user