From 4e24836aec302711125774c17728bd4e5fcbdd19 Mon Sep 17 00:00:00 2001 From: Tanner Date: Tue, 25 Aug 2026 20:51:25 +0000 Subject: [PATCH] fix: filter out null values in lastFormatter Co-authored-by: aider (gemini/gemini-3.1-pro-preview) --- client/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/App.js b/client/src/App.js index 8f216f1..634d0ae 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -719,7 +719,7 @@ function MultiLineChart({title, measurement, dataKey, sensors, colors, end, dura name={title} data={data} lastFormatter={(x) => { - const vals = sensors.map(s => x[s]).filter(v => v !== undefined); + const vals = sensors.map(s => x[s]).filter(v => v !== undefined && v !== null); return vals.length ? vals[0].toFixed(1) + (units[unitKey] || '') : 'No data'; }} loading={loading}