fix(ui): set versionInfo on cached update path so agent badges work (#1228)

When checkForUpdates used cached data, it returned without setting
updateStore.versionInfo. This caused getServerVersion() to return
empty, making checkAgentVersion() skip the comparison and report all
agents as up-to-date (green) regardless of their actual version.
This commit is contained in:
rcourtman 2026-02-09 22:33:56 +00:00
parent 7336ec2d87
commit e06ebb1bb7

View file

@ -67,6 +67,7 @@ const checkForUpdates = async (force = false): Promise<void> => {
// Continue to check for updates
} else {
// Version matches, use cached data
setVersionInfo(currentVersion);
setUpdateInfo(state.updateInfo);
setUpdateAvailable(state.updateInfo.available);