From 929f0e90accffa720978087fbca4bef05a028ec3 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Tue, 14 Feb 2023 20:49:43 +0900 Subject: [PATCH] add empty marker to group --- .../@node-red/editor-client/src/js/ui/tab-info-outliner.js | 3 +++ 1 file changed, 3 insertions(+) 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 32491f297..760840133 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 @@ -613,6 +613,9 @@ RED.sidebar.info.outliner = (function() { objects[n.id].children = missingParents[n.id]; delete missingParents[n.id] } + if (objects[n.id].children.length === 0) { + objects[n.id].children.push(getEmptyItem(n.id)); + } } var parent = n.g||n.z||"__global__";