mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-11-07 01:20:07 +01:00
fix
This commit is contained in:
parent
2946c935ee
commit
a76b25cac5
@ -16,7 +16,7 @@ import useSWR from "swr";
|
|||||||
import { getAttributeLabels } from "@/utils/iconUtil";
|
import { getAttributeLabels } from "@/utils/iconUtil";
|
||||||
|
|
||||||
type useCameraActivityReturn = {
|
type useCameraActivityReturn = {
|
||||||
enabled: boolean;
|
enabled?: boolean;
|
||||||
activeTracking: boolean;
|
activeTracking: boolean;
|
||||||
activeMotion: boolean;
|
activeMotion: boolean;
|
||||||
objects: ObjectType[];
|
objects: ObjectType[];
|
||||||
@ -148,7 +148,7 @@ export function useCameraActivity(
|
|||||||
return cameras[camera.name].camera_fps == 0 && stats["service"].uptime > 60;
|
return cameras[camera.name].camera_fps == 0 && stats["service"].uptime > 60;
|
||||||
}, [camera, stats]);
|
}, [camera, stats]);
|
||||||
|
|
||||||
const isCameraEnabled = cameraEnabled === "ON";
|
const isCameraEnabled = cameraEnabled ? cameraEnabled === "ON" : undefined;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
enabled: isCameraEnabled,
|
enabled: isCameraEnabled,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user