fix restart from webui (#8541)

This commit is contained in:
Josh Hawkins 2023-11-08 10:37:54 -06:00 committed by GitHub
parent fe6577736e
commit e89db13282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ export default function AppBar() {
setShowDialog(false); setShowDialog(false);
setShowDialogWait(true); setShowDialogWait(true);
sendRestart(); sendRestart();
}, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps }, [setShowDialog, sendRestart]);
const handleDismissRestartDialog = useCallback(() => { const handleDismissRestartDialog = useCallback(() => {
setShowDialog(false); setShowDialog(false);