Merge pull request #4060 from node-red-hitachi/fix-empty-group-on-outliner

Fix to add empty marker to empty group
pull/4011/head
Nick O'Leary 2023-02-20 16:51:17 +00:00 committed by GitHub
commit 06e35baeaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -617,6 +617,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__";