Merge pull request #2566 from node-red-hitachi/fix-outliner-subflow

Fix outliner display of newly created subflow
This commit is contained in:
Nick O'Leary 2020-05-16 21:17:56 +01:00 committed by GitHub
commit dca5b3b2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -346,6 +346,10 @@ RED.sidebar.info.outliner = (function() {
if (!parent) {
globalConfigNodes.treeList.addChild(existingObject);
} else {
if (empties[parent]) {
empties[parent].treeList.remove();
delete empties[parent];
}
objects[parent].treeList.addChild(existingObject)
}
}