diff --git a/htdocs/ViewData.vue b/htdocs/ViewData.vue index 384c920..9474e6d 100644 --- a/htdocs/ViewData.vue +++ b/htdocs/ViewData.vue @@ -177,7 +177,7 @@ if((satisfied) && (updated)) { item = calculation.calc(...calculation.deps.map(x => history[x].value), history[calculation.name] && history[calculation.name].value); if((item !== undefined) && (item !== null) && (item === item) && (item != 'NaN')) { // item === item if not NaN - results.push(history[calculation.name] = update[calculation.name] = Object.assign({ time: group.key, value: item }, calculation)); + results.push(history[calculation.name] = update[calculation.name] = item = Object.assign({ time: group.key, value: item }, calculation)); if((item.hasOwnProperty('rangeL')) && (item.value < item.rangeL)) item.flag = 'L'; else if((item.hasOwnProperty('rangeH')) && (item.value > item.rangeH)) item.flag = 'H'; }