Fix
This commit is contained in:
1 parent
c6ce63b934
commit
53f32056d9
2 files changed
+7
-5
No files matched your search
@@ -332,19 +332,21 @@ function newUiObjectsFromNodes() {
|
||||
}
|
||||
}
|
||||
|
||||
function addUIObject(parentNode, type, rootNodes) {
|
||||
function addUIObject(parentNode, type, rootNodes, project) {
|
||||
if (project === undefined) { project = parentNode.project }
|
||||
|
||||
let object = {
|
||||
name: 'New ' + type,
|
||||
type: type,
|
||||
project: parentNode.project
|
||||
project: project
|
||||
}
|
||||
|
||||
let parentNodeDefinition = getNodeDefinition(parentNode)
|
||||
let parentNodeDefinition = getNodeDefinition(parentNode, project)
|
||||
if (parentNodeDefinition === undefined) {
|
||||
console.log('Cannot addUIOBject from parent of ' + type + ' because that type it is not defined at the APP_SCHEMA.')
|
||||
}
|
||||
/* Resolve Initial Values */
|
||||
let nodeDefinition = getNodeDefinition(object)
|
||||
let nodeDefinition = getNodeDefinition(object, project)
|
||||
|
||||
if (nodeDefinition === undefined) {
|
||||
console.log('Cannot addUIOBject of ' + type + ' because that type it is not defined at the APP_SCHEMA.')
|
||||
|
||||
@@ -23,7 +23,7 @@ function newWorkspaceFunctions() {
|
||||
}
|
||||
|
||||
if (alreadyExist === false) {
|
||||
let child = functionLibraryUiObjectsFromNodes.addUIObject(node, project + ' Project', rootNodes)
|
||||
let child = functionLibraryUiObjectsFromNodes.addUIObject(node, project + ' Project', rootNodes, project)
|
||||
child.project = project
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user