Removed warnings

This commit is contained in:
Mathias Wagner
2022-06-22 19:57:55 +02:00
parent bf43311b74
commit cc0e90ad7e
2 changed files with 3 additions and 1 deletions

View File

@@ -79,6 +79,8 @@ function DropdownComponent() {
const interval = setInterval(() => checkPauseStatus(), 15000);
checkPauseStatus();
return () => clearInterval(interval);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const updateDownload = async () => {

View File

@@ -30,7 +30,7 @@ export const ConfigProvider = (props) => {
window.location.reload();
}
}));
}, []);
}, [setDialog]);
return (
<ConfigContext.Provider value={config}>