mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47:40 +03:00
fix: accept boolean | undefined for CameraMotionDot autoLive prop
autoLive ?? globalAutoLive can be undefined when useUserPersistence hasn't hydrated yet. Change the prop type to optional boolean and treat undefined as the default-true value (show dot unless explicitly set to false via no-streaming mode). https://claude.ai/code/session_019B4dJXtcxvHn97ZaqHUB62
This commit is contained in:
parent
f9885df0e4
commit
621f484b92
@ -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