From 39546849ae365d84689f9964a7288aa133488689 Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Fri, 10 Jan 2025 14:24:15 +0530 Subject: [PATCH] fix: mix cached and uncached data on the ws-agent --- app/routes/machines/components/machine.tsx | 2 +- app/utils/ws-agent.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/machines/components/machine.tsx b/app/routes/machines/components/machine.tsx index 11203cd..a55148b 100644 --- a/app/routes/machines/components/machine.tsx +++ b/app/routes/machines/components/machine.tsx @@ -156,7 +156,7 @@ export default function MachineRow({ machine, routes, magic, users, stats }: Pro {stats !== undefined ? ( <> -

+

{hinfo.getTSVersion(stats)}

diff --git a/app/utils/ws-agent.ts b/app/utils/ws-agent.ts index a28cf3a..cea469e 100644 --- a/app/utils/ws-agent.ts +++ b/app/utils/ws-agent.ts @@ -143,5 +143,5 @@ export async function queryAgent(nodes: string[]) { } } - return returnData + return returnData ? { ...cached, ...returnData } : cached; }