mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-10 08:51:00 -06:00
Only show recordings summary for main camera in history view (#20344)
This commit is contained in:
parent
658b0a064c
commit
4bea69591b
@ -103,18 +103,18 @@ export function RecordingView({
|
||||
() => allCameras.filter((camera) => allowedCameras.includes(camera)),
|
||||
[allCameras, allowedCameras],
|
||||
);
|
||||
const [mainCamera, setMainCamera] = useState(startCamera);
|
||||
|
||||
const { data: recordingsSummary } = useSWR<RecordingsSummary>([
|
||||
"recordings/summary",
|
||||
{
|
||||
timezone: timezone,
|
||||
cameras: effectiveCameras.join(",") ?? null,
|
||||
cameras: mainCamera ?? null,
|
||||
},
|
||||
]);
|
||||
|
||||
// controller state
|
||||
|
||||
const [mainCamera, setMainCamera] = useState(startCamera);
|
||||
const mainControllerRef = useRef<DynamicVideoController | null>(null);
|
||||
const mainLayoutRef = useRef<HTMLDivElement | null>(null);
|
||||
const cameraLayoutRef = useRef<HTMLDivElement | null>(null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user