From 501b7f0f542e2b6088d7cdba0475c91c7a1007d6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 6 Feb 2020 10:12:33 +0100 Subject: [PATCH] no chart system node handling --- Spaces/ChartSpace.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Spaces/ChartSpace.js b/Spaces/ChartSpace.js index 41394e27b..3bb31a98e 100644 --- a/Spaces/ChartSpace.js +++ b/Spaces/ChartSpace.js @@ -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 }