Skip to content

chore: upgrade nodejs version to 18.x #8768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 27, 2023
Prev Previous commit
Next Next commit
Fix timeout
  • Loading branch information
BrunoQuaresma committed Jul 27, 2023
commit 5e7eecd86cc95d4d40843060d9d4cec2714833a4
4 changes: 2 additions & 2 deletions site/src/components/DeploymentBanner/DeploymentBannerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
let canceled = false
const loop = () => {
if (canceled) {
return
return undefined
}
setTimeUntilRefresh(timeUntilRefresh--)
if (timeUntilRefresh > 0) {
return setTimeout(loop, 1000)
return window.setTimeout(loop, 1000)
}
fetchStats()
}
Expand Down