From 002282a8b76418030f1d356966327bc46772bdd4 Mon Sep 17 00:00:00 2001 From: zukki259 Date: Tue, 18 Aug 2026 21:48:38 +0900 Subject: [PATCH] Fix MemoryMonitor blank on GPU-less deployments gpu_memory_percent is serialized as JSON null (not omitted) when no GPU is present, but the template checked `!== undefined`, which is true for null too. Calling .toFixed() on that null then threw during render, blanking the whole widget instead of just hiding the GPU row. Only showed up on GPU-less hosts like a Lightsail instance, not on this dev machine which has a GPU. --- frontend/src/components/MemoryMonitor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/MemoryMonitor.vue b/frontend/src/components/MemoryMonitor.vue index c95d147..6ede3a4 100644 --- a/frontend/src/components/MemoryMonitor.vue +++ b/frontend/src/components/MemoryMonitor.vue @@ -60,7 +60,7 @@ onUnmounted(() => { {{ stats.memory_percent.toFixed(1) }}% ({{ formatMemory(stats.memory_used_mb) }} / {{ formatMemory(stats.memory_total_mb) }}) -
+
GPU