mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
fix inactive tab losing container table data
This commit is contained in:
@@ -89,7 +89,8 @@ export default function ContainersTable({ systemId }: { systemId?: string }) {
|
|||||||
|
|
||||||
// if systemId, fetch containers after the system is updated
|
// if systemId, fetch containers after the system is updated
|
||||||
return listenKeys($allSystemsById, [systemId], (_newSystems) => {
|
return listenKeys($allSystemsById, [systemId], (_newSystems) => {
|
||||||
setTimeout(() => fetchData(1000), 100)
|
const changeTime = Date.now()
|
||||||
|
setTimeout(() => fetchData(Date.now() - changeTime + 1000), 100)
|
||||||
})
|
})
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user