mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 20:47:42 +03:00
fix frontend crash in npu stats
This commit is contained in:
parent
5647142f96
commit
39858be068
@ -386,7 +386,7 @@ export default function GeneralMetrics({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.entries(stats.npu_usages || []).forEach(([key, stats]) => {
|
Object.entries(stats.npu_usages || {}).forEach(([key, stats]) => {
|
||||||
if (!(key in series)) {
|
if (!(key in series)) {
|
||||||
series[key] = { name: key, data: [] };
|
series[key] = { name: key, data: [] };
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user