From 6a44882be64ec869f942f85b1bca574396af7375 Mon Sep 17 00:00:00 2001 From: ji ruo <79234113+RuoJi6@users.noreply.github.com> Date: Fri, 30 Oct 2026 01:58:34 +0800 Subject: [PATCH] fix: disable non-Linux resource preview --- web/src/app/(main)/dashboard/page.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/web/src/app/(main)/dashboard/page.tsx b/web/src/app/(main)/dashboard/page.tsx index 241e75a..37a20ce 100644 --- a/web/src/app/(main)/dashboard/page.tsx +++ b/web/src/app/(main)/dashboard/page.tsx @@ -107,13 +107,16 @@ function statusBg(code: number): string { function SystemResourceStatus({ metrics }: { metrics: SystemMetrics | null }) { if (!metrics) return null; + if (!metrics.supported) { + return