fix: mix cached and uncached data on the ws-agent

This commit is contained in:
Aarnav Tale 2025-01-10 14:24:15 +05:30
parent eb922c9318
commit 39546849ae
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ export default function MachineRow({ machine, routes, magic, users, stats }: Pro
<td className="py-2">
{stats !== undefined ? (
<>
<p className="font-semibold leading-snug">
<p className="leading-snug">
{hinfo.getTSVersion(stats)}
</p>
<p className="text-sm text-gray-500 dark:text-gray-300 max-w-48 truncate">

View File

@ -143,5 +143,5 @@ export async function queryAgent(nodes: string[]) {
}
}
return returnData
return returnData ? { ...cached, ...returnData } : cached;
}