mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-05 17:51:36 +02:00
Fix websocket enabled state (#17585)
* use camera activity hook instead of websocket enabled state * use original websocket but use ternary operator instead
This commit is contained in:
parent
f978ef2cda
commit
f2840468b4
@ -28,7 +28,7 @@ export default function CameraImage({
|
||||
|
||||
const { name } = config ? config.cameras[camera] : "";
|
||||
const { payload: enabledState } = useEnabledState(camera);
|
||||
const enabled = enabledState === "ON" || enabledState === undefined;
|
||||
const enabled = enabledState ? enabledState === "ON" : true;
|
||||
|
||||
const [{ width: containerWidth, height: containerHeight }] =
|
||||
useResizeObserver(containerRef);
|
||||
|
Loading…
Reference in New Issue
Block a user