Handle projects that do not have hierarchy head nodes

This commit is contained in:
Brenden Harrell committed 2021-09-13 21:04:35 -05:00
1 parent edf824b77d
commit 2662571357
1 file changed
+1
@@ -21,6 +21,7 @@ function newFoundationsFunctionLibraryWorkspaceFunctions() {
if (alreadyExist === false) {
let child = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, project + ' Project', rootNodes, project)
if (child === undefined) { continue }
child.project = project
child.projectDefinition.name = project
child.projectDefinition.config = "{ \n \"codeName\": \"" + project + "\"\n}"