1
0
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:
Nick O'Leary 2020-06-26 17:21:20 +01:00
parent 0cc944dc5a
commit c171088838
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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) {