Filter alerts by camera group (#12456)

This commit is contained in:
Nicolas Mowen 2024-07-15 06:35:41 -06:00 committed by GitHub
parent 3afd77cbe0
commit 5066fa369d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,11 @@ export default function LiveDashboardView({
const eventUpdate = useFrigateReviews(); const eventUpdate = useFrigateReviews();
const { data: allEvents, mutate: updateEvents } = useSWR<ReviewSegment[]>([ const { data: allEvents, mutate: updateEvents } = useSWR<ReviewSegment[]>([
"review", "review",
{ limit: 10, severity: "alert" }, {
limit: 10,
severity: "alert",
cameras: cameraGroup && cameras.filter((cam) => cam.name).join(","),
},
]); ]);
useEffect(() => { useEffect(() => {