diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js index 608b90d09..d33c3aabe 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js @@ -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