Merge pull request #65 from ibs0d/claude/fix-zoom-statistics-WFvOm

fix: accept boolean | undefined for CameraMotionDot autoLive prop
This commit is contained in:
ibs0d 2026-03-17 18:42:30 +11:00 committed by GitHub
commit 5d1be5c171
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" />