no chart system node handling

This commit is contained in:
Luis Fernando Molina committed 2020-02-06 10:12:33 +01:00
1 parent 2f4de2d497
commit 501b7f0f54
1 file changed
+6
+6
View File
@@ -92,9 +92,15 @@ function newChartSpace () {
}
}
if (thisObject.payload === undefined) {
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> There must exist a Charting Space at the Designer Space in order to enable Charts. PLease create one and refreash your browser. ') }
return
}
thisObject.viewport = newViewport()
if (thisObject.payload.node.viewport === undefined) {
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> There must exist a Viewport node attached to the Charting Space node in order for the Viewport save its properties. ') }
return
} else {
thisObject.viewport.payload = thisObject.payload.node.viewport.payload
}