Skip to content

Commit

Permalink
fix empty placeholder not shown on remove from group
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroyasuNishiyama committed Jun 11, 2020
1 parent 81a4f42 commit 842cd1e
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -384,8 +384,13 @@ RED.sidebar.info.outliner = (function() {
} else {
existingObject.element.find(".red-ui-info-outline-item-label").html(" ");
}
if (parent !== existingObject.parent.id) {
var oldParent = existingObject.parent;
var oldParentID = oldParent.id;
if (parent !== oldParentID) {
existingObject.treeList.remove(true);
if (oldParent.children.length === 0) {
objects[oldParentID].treeList.addChild(getEmptyItem(oldParentID));
}
if (parent === "__global__") {
globalConfigNodes.treeList.addChild(existingObject);
} else {
Expand Down

0 comments on commit 842cd1e

Please sign in to comment.