From ea1d8ab037d82a3c261e7b9fb915f553db3bd78f Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 6 Apr 2026 12:06:08 +0200 Subject: [PATCH] Update system-overview.tsx --- AppImage/components/system-overview.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/AppImage/components/system-overview.tsx b/AppImage/components/system-overview.tsx index b1907209..92a4d897 100644 --- a/AppImage/components/system-overview.tsx +++ b/AppImage/components/system-overview.tsx @@ -145,28 +145,17 @@ const fetchStorageData = async (): Promise => { const fetchNetworkData = async (): Promise => { try { const data = await fetchApi("/api/network/summary") - return data + return data } catch { - return null + return null } } const fetchProxmoxStorageData = async (): Promise => { try { - const data = await fetchApi("/api/proxmox-storage") - return data - } catch { - return null - } -} -} - -const fetchProxmoxStorageData = async (): Promise => { - try { - const data = await fetchApi("/api/proxmox-storage") + const data = await fetchApi("/api/proxmox-storage") return data - } catch (error) { - console.log("[v0] Proxmox storage API not available") + } catch { return null } }