mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00: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));
|
parentItem.treeList.addChild(getEmptyItem(parentItem.id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// This must be a config node that has been rescoped
|
if (n._def.category === 'config' && n.type !== 'group') {
|
||||||
createFlowConfigNode(parent,n.type);
|
// This must be a config node that has been rescoped
|
||||||
configNodeTypes[parent].types[n.type].treeList.addChild(objects[n.id]);
|
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__") {
|
// if (parent === "__global__") {
|
||||||
// // Global always exists here
|
// // Global always exists here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user