Update packages/dashboard/app/versionCheck.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
gsxdsm
2026-06-21 00:08:11 -07:00
parent 6e563b9579
commit 5364b62af7

View File

@@ -240,7 +240,8 @@ export async function checkVersion(trigger: VersionCheckTrigger = "initial"): Pr
} catch {
// ignore
}
if (autoReloadEnabled) {
const alreadyAttempted = Boolean((() => { try { return sessionStorage.getItem(RELOAD_FLAG); } catch { return null; } })());
if (autoReloadEnabled && !alreadyAttempted) {
setReloadedRemoteVersion(remote);
}
reloadOnce(`build version changed: ${__BUILD_VERSION__} -> ${remote}`);