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

Fix group position in outliner

This commit is contained in:
Nick O'Leary 2020-06-16 20:48:28 +01:00
parent 9ce5210c33
commit aca379db6e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -433,9 +433,18 @@ RED.sidebar.info.outliner = (function() {
parentItem.treeList.addChild(getEmptyItem(parentItem.id));
}
}
// This must be a config node that has been rescoped
createFlowConfigNode(parent,n.type);
configNodeTypes[parent].types[n.type].treeList.addChild(objects[n.id]);
if (n._def.category === 'config' && n.type !== 'group') {
// This must be a config node that has been rescoped
createFlowConfigNode(parent,n.type);
configNodeTypes[parent].types[n.type].treeList.addChild(objects[n.id]);
} else {
// This is a node that has moved groups
if (empties[parent]) {
empties[parent].treeList.remove();
delete empties[parent];
}
objects[parent].treeList.addChild(existingObject)
}
// if (parent === "__global__") {
// // Global always exists here