From e646f2c1fc8588f68344cb8a28edf350d1d51ad4 Mon Sep 17 00:00:00 2001 From: henrygd Date: Sun, 26 Oct 2025 10:32:49 -0400 Subject: [PATCH] fix inactive tab losing container table data --- .../site/src/components/containers-table/containers-table.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/site/src/components/containers-table/containers-table.tsx b/internal/site/src/components/containers-table/containers-table.tsx index d4094e4a..109dda7b 100644 --- a/internal/site/src/components/containers-table/containers-table.tsx +++ b/internal/site/src/components/containers-table/containers-table.tsx @@ -89,7 +89,8 @@ export default function ContainersTable({ systemId }: { systemId?: string }) { // if systemId, fetch containers after the system is updated return listenKeys($allSystemsById, [systemId], (_newSystems) => { - setTimeout(() => fetchData(1000), 100) + const changeTime = Date.now() + setTimeout(() => fetchData(Date.now() - changeTime + 1000), 100) }) }, [])