mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Fix lint
This commit is contained in:
parent
410cdf92dc
commit
61d652659e
@ -37,6 +37,7 @@ export function ThresholdBarGraph({
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @ts-expect-error y is valid
|
||||||
const yValues: number[] = data[0].data.map((point) => point?.y);
|
const yValues: number[] = data[0].data.map((point) => point?.y);
|
||||||
return Math.max(threshold.warning, ...yValues);
|
return Math.max(threshold.warning, ...yValues);
|
||||||
}, [data, threshold, unit]);
|
}, [data, threshold, unit]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user