Logging improved

This commit is contained in:
Luis Fernando Molina committed 2021-10-08 10:24:18 +02:00
1 parent 0bf9caf2c1
commit cd40e8ec48
2 files changed
+5 -2

No files matched your search

@@ -20,6 +20,7 @@ function newFoundationsFunctionLibraryReferenceAttachDetach() {
// Store the path to the reference parent to make restoring it possible if the reference parent is updated and given a new id
function storeAttachNodePath(node, attachToNode) {
if (node === undefined) { return }
if (node.payload === undefined) { return }
let attachNodePath = UI.projects.foundations.utilities.hierarchy.getNodeNameTypePath(attachToNode)
// Remove unused node id, and project tag from stored path
@@ -33,6 +34,8 @@ function newFoundationsFunctionLibraryReferenceAttachDetach() {
// Clear the path to reference parent when the reference is cleared
function cleanAttachNodePath(node) {
if (node === undefined) { return }
if (node.payload === undefined) { return }
if (node.payload !== undefined) {
node.payload.referenceParentCombinedNodePath = undefined
if (node.savedPayload !== undefined) {
@@ -599,7 +599,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
let schemaDocument = getSchemaDocument(object, project)
if (schemaDocument === undefined) {
console.log('Cannot addUIOBject of ' + type + ' because that type it is not defined at the APP_SCHEMA.')
console.log('Cannot addUIOBject of type "' + type + '" and project "' + project + '"because that type it is not defined at the APP_SCHEMA.')
return
}
@@ -627,7 +627,7 @@ function newFoundationsFunctionLibraryUiObjectsFromNodes() {
parentSchemaDocument = getSchemaDocument(parentNode, parentNode.project)
if (parentSchemaDocument === undefined) {
console.log('Cannot addUIOBject from parent of ' + type + ' because that type it is not defined at the APP_SCHEMA.')
console.log('Cannot addUIOBject from parent of type "' + type + '" and project "' + parentNode.project + '" because that type it is not defined at the APP_SCHEMA.')
return
}
checkChainToSelfTypeCollection()