fix frontend crash in npu stats

This commit is contained in:
Josh Hawkins 2025-04-29 15:38:14 -05:00
parent 5647142f96
commit 39858be068

View File

@ -386,7 +386,7 @@ export default function GeneralMetrics({
return;
}
Object.entries(stats.npu_usages || []).forEach(([key, stats]) => {
Object.entries(stats.npu_usages || {}).forEach(([key, stats]) => {
if (!(key in series)) {
series[key] = { name: key, data: [] };
}