From 7d45d458b45c4b2967539f54b52f93835b032ff2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 27 Nov 2019 10:29:09 +0100 Subject: [PATCH] bug fixed --- IndicatorBot.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/IndicatorBot.js b/IndicatorBot.js index 5192e33a8..8ebe98fbe 100644 --- a/IndicatorBot.js +++ b/IndicatorBot.js @@ -89,8 +89,11 @@ singularVariableName = outputDatasetNode.referenceParent.parentNode.code.singularVariableName /* Check Irregular Periods */ - if (outputDatasetNode.referenceParent.parentNode.dataBuilding.loop.code.code.indexOf('results.push') >= 0) { - resultsWithIrregularPeriods = true + + if (outputDatasetNode.referenceParent.parentNode.dataBuilding.loop.code !== undefined) { + if (outputDatasetNode.referenceParent.parentNode.dataBuilding.loop.code.code.indexOf('results.push') >= 0) { + resultsWithIrregularPeriods = true + } } /* Build the data */