mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix reparenting nodes in outliner when they change
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user