Skip to content

NVR with realtime local object detection for IP cameras

fix restart from webui (#8541)

Josh Hawkinse89db1328233
diff --git a/web/src/AppBar.jsx b/web/src/AppBar.jsx
index b5bb16c0f3..7cc8887a75 100644
--- a/web/src/AppBar.jsx
+++ b/web/src/AppBar.jsx
@@ -40,7 +40,7 @@ export default function AppBar() {
setShowDialog(false);
setShowDialogWait(true);
sendRestart();
- }, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps
+ }, [setShowDialog, sendRestart]);
const handleDismissRestartDialog = useCallback(() => {
setShowDialog(false);