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 ca4baa586..222aafd45 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 @@ -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) {