Skip to content

Commit 1a82407

Browse files
committed
window is not nullable
1 parent c7fe712 commit 1a82407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Frontend/src/composables/autoRefresh.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function useAutoRefresh(refreshAction: () => Promise<void>, defau
99

1010
function stopTimer() {
1111
if (refreshInterval !== null) {
12-
window?.clearTimeout(refreshInterval);
12+
window.clearTimeout(refreshInterval);
1313
refreshInterval = null;
1414
}
1515
}
@@ -18,7 +18,7 @@ export default function useAutoRefresh(refreshAction: () => Promise<void>, defau
1818
if (timeout.value === null) return;
1919

2020
stopTimer();
21-
refreshInterval = window?.setTimeout(() => {
21+
refreshInterval = window.setTimeout(() => {
2222
executeAndResetTimer();
2323
}, timeout.value as number);
2424
}

0 commit comments

Comments
 (0)