mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47: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,
|
||||
}: {
|
||||
camera: CameraConfig;
|
||||
autoLive: boolean;
|
||||
autoLive?: boolean;
|
||||
}) {
|
||||
const { activeMotion, offline } = useCameraActivity(camera);
|
||||
if (!autoLive || offline || !activeMotion) return null;
|
||||
if (autoLive === false || offline || !activeMotion) return null;
|
||||
return (
|
||||
<div className="absolute right-2 top-2 z-40">
|
||||
<MdCircle className="mr-2 size-2 animate-pulse text-danger shadow-danger drop-shadow-md" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user