mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
Quick fix (#16926)
* fix * Fix * Fix incorrect default websocket value * Cleanup value setting
This commit is contained in:
@@ -16,7 +16,7 @@ import useSWR from "swr";
|
||||
import { getAttributeLabels } from "@/utils/iconUtil";
|
||||
|
||||
type useCameraActivityReturn = {
|
||||
enabled: boolean;
|
||||
enabled?: boolean;
|
||||
activeTracking: boolean;
|
||||
activeMotion: boolean;
|
||||
objects: ObjectType[];
|
||||
@@ -148,7 +148,7 @@ export function useCameraActivity(
|
||||
return cameras[camera.name].camera_fps == 0 && stats["service"].uptime > 60;
|
||||
}, [camera, stats]);
|
||||
|
||||
const isCameraEnabled = cameraEnabled === "ON";
|
||||
const isCameraEnabled = cameraEnabled ? cameraEnabled === "ON" : undefined;
|
||||
|
||||
return {
|
||||
enabled: isCameraEnabled,
|
||||
|
||||
Reference in New Issue
Block a user