diff --git a/web/src/views/system/GeneralMetrics.tsx b/web/src/views/system/GeneralMetrics.tsx index a6be0a418..1b253ca26 100644 --- a/web/src/views/system/GeneralMetrics.tsx +++ b/web/src/views/system/GeneralMetrics.tsx @@ -391,7 +391,7 @@ export default function GeneralMetrics({ series[key] = { name: key, data: [] }; } - if (stats.npu) { + if (stats?.npu) { hasValidNpu = true; series[key].data.push({ x: statsIdx + 1, y: stats.npu }); } @@ -399,6 +399,7 @@ export default function GeneralMetrics({ }); if (!hasValidNpu) { + console.log(`returning blank`); return []; } @@ -585,8 +586,8 @@ export default function GeneralMetrics({ {(statsHistory.length == 0 || - statsHistory[0].gpu_usages || - statsHistory[0].npu_usages) && ( + gpuSeries.length > 0 || + npuSeries.length > 0) && ( <>