mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 07:05:24 +03:00
Fix spelling
This commit is contained in:
parent
bd1ebcc441
commit
8902097125
@ -28,7 +28,7 @@ function useValue(): useValueReturn {
|
|||||||
|
|
||||||
// main state
|
// main state
|
||||||
|
|
||||||
const [hasCameraState, setHasCameraStates] = useState(false);
|
const [hasCameraState, setHasCameraState] = useState(false);
|
||||||
const [wsState, setWsState] = useState<WsState>({});
|
const [wsState, setWsState] = useState<WsState>({});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -64,7 +64,7 @@ function useValue(): useValueReturn {
|
|||||||
});
|
});
|
||||||
|
|
||||||
setWsState({ ...wsState, ...cameraStates });
|
setWsState({ ...wsState, ...cameraStates });
|
||||||
setHasCameraStates(true);
|
setHasCameraState(true);
|
||||||
// we only want this to run initially when the config is loaded
|
// we only want this to run initially when the config is loaded
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [wsState]);
|
}, [wsState]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user