* Fix i18n page titles

* fix frontend crash in npu stats

* return empty object for gpu_usages if null

* fix gpu info i18n keys
This commit is contained in:
Josh Hawkins
2025-04-29 17:03:44 -05:00
committed by GitHub
parent c91c6970de
commit a9f139e062
5 changed files with 16 additions and 11 deletions
+4 -4
View File
@@ -240,7 +240,7 @@ export default function GeneralMetrics({
return;
}
Object.entries(stats.gpu_usages || []).forEach(([key, stats]) => {
Object.entries(stats.gpu_usages || {}).forEach(([key, stats]) => {
if (!(key in series)) {
series[key] = { name: key, data: [] };
}
@@ -316,7 +316,7 @@ export default function GeneralMetrics({
return;
}
Object.entries(stats.gpu_usages || []).forEach(([key, stats]) => {
Object.entries(stats.gpu_usages || {}).forEach(([key, stats]) => {
if (!(key in series)) {
series[key] = { name: key, data: [] };
}
@@ -350,7 +350,7 @@ export default function GeneralMetrics({
return;
}
Object.entries(stats.gpu_usages || []).forEach(([key, stats]) => {
Object.entries(stats.gpu_usages || {}).forEach(([key, stats]) => {
if (!(key in series)) {
series[key] = { name: key, data: [] };
}
@@ -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: [] };
}