From 264b17f429354842825ed01d5f38a7c59b399188 Mon Sep 17 00:00:00 2001 From: henrygd Date: Mon, 20 Apr 2026 21:27:16 -0400 Subject: [PATCH] updte --- .../src/components/routes/system/lazy-tables.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/site/src/components/routes/system/lazy-tables.tsx b/internal/site/src/components/routes/system/lazy-tables.tsx index 62cdbde0..5fd9e082 100644 --- a/internal/site/src/components/routes/system/lazy-tables.tsx +++ b/internal/site/src/components/routes/system/lazy-tables.tsx @@ -69,15 +69,15 @@ export function LazyNetworkProbesTableNew({ systemId, systemData }: { systemId: const cachedProbeStats = cache.get(ss_cache_key) as NetworkProbeStatsRecord[] | undefined // Render from cache immediately if available - // if (cachedProbeStats?.length) { - // setProbeStats(cachedProbeStats) + if (cachedProbeStats?.length) { + setProbeStats(cachedProbeStats) - // // Skip the fetch if the latest cached point is recent enough that no new point is expected yet - // const lastCreated = cachedProbeStats.at(-1)?.created as number | undefined - // if (lastCreated && Date.now() - lastCreated < expectedInterval * 0.9) { - // return - // } - // } + // Skip the fetch if the latest cached point is recent enough that no new point is expected yet + const lastCreated = cachedProbeStats.at(-1)?.created as number | undefined + if (lastCreated && Date.now() - lastCreated < expectedInterval * 0.9) { + return + } + } getStats("network_probe_stats", systemId, chartTime, cachedProbeStats).then( (probeStats) => {