mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Merge pull request #65 from ibs0d/claude/fix-zoom-statistics-WFvOm
fix: accept boolean | undefined for CameraMotionDot autoLive prop
This commit is contained in:
commit
5d1be5c171
@ -1089,10 +1089,10 @@ function CameraMotionDot({
|
|||||||
autoLive,
|
autoLive,
|
||||||
}: {
|
}: {
|
||||||
camera: CameraConfig;
|
camera: CameraConfig;
|
||||||
autoLive: boolean;
|
autoLive?: boolean;
|
||||||
}) {
|
}) {
|
||||||
const { activeMotion, offline } = useCameraActivity(camera);
|
const { activeMotion, offline } = useCameraActivity(camera);
|
||||||
if (!autoLive || offline || !activeMotion) return null;
|
if (autoLive === false || offline || !activeMotion) return null;
|
||||||
return (
|
return (
|
||||||
<div className="absolute right-2 top-2 z-40">
|
<div className="absolute right-2 top-2 z-40">
|
||||||
<MdCircle className="mr-2 size-2 animate-pulse text-danger shadow-danger drop-shadow-md" />
|
<MdCircle className="mr-2 size-2 animate-pulse text-danger shadow-danger drop-shadow-md" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user