fix inactive tab losing container table data

This commit is contained in:
henrygd
2025-10-26 10:32:49 -04:00
parent b18528d24a
commit e646f2c1fc

View File

@@ -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)
})
}, [])