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:
parent
9ce5210c33
commit
aca379db6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user