diff --git a/apps/dashboard/src/components/version-alerter.tsx b/apps/dashboard/src/components/version-alerter.tsx index 344e6c61c..0aaaca7f1 100644 --- a/apps/dashboard/src/components/version-alerter.tsx +++ b/apps/dashboard/src/components/version-alerter.tsx @@ -45,6 +45,8 @@ export function VersionAlerter({ severeOnly }: { severeOnly: boolean }) { if (cancelled) return; setVersionCheckResult(data.upToDate ? null : data); } catch (e) { + // wait a little bit because the error may have been caused by a page reload + await wait(2000); if (cancelled) return; console.error("Error checking version", e); setVersionCheckResult({ severe: true, error: `Error checking version, please make sure you're connected to the internet. See the console for more details. \n${e}` });