mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 18:44:53 +00:00
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:
parent
7336ec2d87
commit
e06ebb1bb7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue