From fabb516c720201d6562edf5c01106dcdd67f38b3 Mon Sep 17 00:00:00 2001 From: James Muscat Date: Mon, 17 Jun 2024 17:58:10 +0100 Subject: [PATCH] Don't record null values. --- src/analysis/trackData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis/trackData.js b/src/analysis/trackData.js index 6fbcc8b..5c42e00 100644 --- a/src/analysis/trackData.js +++ b/src/analysis/trackData.js @@ -64,7 +64,7 @@ export const TrackData = types.model({ } } - if (!prevValue || prevValue[0] !== value[0]) { + if (value[0] && (!prevValue || prevValue[0] !== value[0])) { // Value has changed! How exciting // console.log(label, prevValue[0], '==>', value[0]); self.series.get(label).data.push(Datum.create({