WIP ESLint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 12:12:11 +01:00
parent 9a905e83f7
commit 3bf8859ff9
20 changed files with 129 additions and 70 deletions

View File

@@ -9,7 +9,7 @@ export function VMScreenshot(p: { vm: VMInfo }): React.ReactElement {
string | undefined
>();
const int = React.useRef<any | undefined>(undefined);
const int = React.useRef<NodeJS.Timeout | undefined>(undefined);
React.useEffect(() => {
const refresh = async () => {
@@ -25,7 +25,9 @@ export function VMScreenshot(p: { vm: VMInfo }): React.ReactElement {
if (int.current === undefined) {
refresh();
int.current = setInterval(() => refresh(), 5000);
int.current = setInterval(() => {
refresh();
}, 5000);
}
return () => {