mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix handling of default group (#12459)
This commit is contained in:
parent
c850604931
commit
b7cf5f4105
@ -57,7 +57,10 @@ export function AnimatedEventCard({
|
|||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const onOpenReview = useCallback(() => {
|
const onOpenReview = useCallback(() => {
|
||||||
const url = selectedGroup ? `review?group=${selectedGroup}` : "review";
|
const url =
|
||||||
|
selectedGroup && selectedGroup != "default"
|
||||||
|
? `review?group=${selectedGroup}`
|
||||||
|
: "review";
|
||||||
navigate(url, {
|
navigate(url, {
|
||||||
state: {
|
state: {
|
||||||
severity: event.severity,
|
severity: event.severity,
|
||||||
|
@ -69,7 +69,7 @@ export default function Events() {
|
|||||||
useApiFilter<ReviewFilter>();
|
useApiFilter<ReviewFilter>();
|
||||||
|
|
||||||
useSearchEffect("group", (reviewGroup) => {
|
useSearchEffect("group", (reviewGroup) => {
|
||||||
if (config && reviewGroup) {
|
if (config && reviewGroup && reviewGroup != "default") {
|
||||||
const group = config.camera_groups[reviewGroup];
|
const group = config.camera_groups[reviewGroup];
|
||||||
const isBirdseyeOnly =
|
const isBirdseyeOnly =
|
||||||
group.cameras.length == 1 && group.cameras[0] == "birdseye";
|
group.cameras.length == 1 && group.cameras[0] == "birdseye";
|
||||||
|
Loading…
Reference in New Issue
Block a user