From 0f45424458e091c67ea4d2386da4bd4a91c60203 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 9 Nov 2025 12:52:10 +0100 Subject: [PATCH] Update virtual-machines.tsx --- AppImage/components/virtual-machines.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/AppImage/components/virtual-machines.tsx b/AppImage/components/virtual-machines.tsx index c6c814e..a9a4d15 100644 --- a/AppImage/components/virtual-machines.tsx +++ b/AppImage/components/virtual-machines.tsx @@ -276,7 +276,6 @@ export function VirtualMachines() { const [controlLoading, setControlLoading] = useState(false) const [detailsLoading, setDetailsLoading] = useState(false) const [vmConfigs, setVmConfigs] = useState>({}) - const [loadingLXCIPs, setLoadingLXCIPs] = useState(false) const [currentView, setCurrentView] = useState<"main" | "metrics">("main") const [showAdditionalInfo, setShowAdditionalInfo] = useState(false) const [showNotes, setShowNotes] = useState(false) @@ -293,7 +292,6 @@ export function VirtualMachines() { if (lxcs.length === 0) return - setLoadingLXCIPs(true) const configs: Record = {} const batchSize = 5 @@ -326,10 +324,8 @@ export function VirtualMachines() { }), ) - setVmConfigs({ ...configs }) + setVmConfigs((prev) => ({ ...prev, ...configs })) } - - setLoadingLXCIPs(false) } fetchLXCIPs() @@ -500,12 +496,10 @@ export function VirtualMachines() { return "text-green-500" } - if (isLoading || loadingLXCIPs) { + if (isLoading) { return (
-
- {isLoading ? "Loading virtual machines..." : "Loading container IPs..."} -
+
Loading virtual machines...
) }