From 8392d111dcc89aa262a1af7a63b25ed5b8124b4f Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 10 Mar 2026 18:06:40 +0100 Subject: [PATCH] Update health-status-modal.tsx --- AppImage/components/health-status-modal.tsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/AppImage/components/health-status-modal.tsx b/AppImage/components/health-status-modal.tsx index 2a1e4222..a05efa98 100644 --- a/AppImage/components/health-status-modal.tsx +++ b/AppImage/components/health-status-modal.tsx @@ -333,27 +333,6 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu return { total: CATEGORIES.length, healthy, info, warnings, critical, unknown } } - let healthy = 0 - let info = 0 - let warnings = 0 - let critical = 0 - let unknown = 0 - - CATEGORIES.forEach(({ key }) => { - const categoryData = healthData.details[key as keyof typeof healthData.details] - if (categoryData) { - const status = categoryData.status?.toUpperCase() - if (status === "OK") healthy++ - else if (status === "INFO") info++ - else if (status === "WARNING") warnings++ - else if (status === "CRITICAL") critical++ - else if (status === "UNKNOWN") unknown++ - } - }) - - return { total: CATEGORIES.length, healthy, info, warnings, critical, unknown } - } - const stats = getHealthStats() const handleCategoryClick = (categoryKey: string, status: string) => {