From 5db30914707a9eb24a3b3fe87a031f1bdb498b61 Mon Sep 17 00:00:00 2001 From: inportb Date: Mon, 9 Dec 2024 23:24:17 -0500 Subject: [PATCH] Fix missing out-of-range flag reporting for flowsheet calculations --- htdocs/ViewData.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }