fix comparison for d in generateTimeSeries
Some checks are pending
Create docker images / Build, push, and deploy (push) Waiting to run
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run

This commit is contained in:
Francis Cao 2025-09-24 11:07:13 -07:00
parent b777441788
commit ce1120c3ff

View file

@ -350,7 +350,7 @@ export function generateTimeSeries(
return timeseries.map(t => {
const { x, y, d } = lookup.get(t) || {};
return { x: t, d: d || x, y: y ?? null };
return { x: t, d: d ?? x, y: y ?? null };
});
}