mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Fix handling of non existing cameras in groups
This commit is contained in:
parent
84c1ad59a2
commit
b2bfc80bb8
@ -63,6 +63,11 @@ export default function SearchFilterGroup({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const cameraConfig = config.cameras[camera];
|
const cameraConfig = config.cameras[camera];
|
||||||
|
|
||||||
|
if (!cameraConfig) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cameraConfig.objects.track.forEach((label) => {
|
cameraConfig.objects.track.forEach((label) => {
|
||||||
if (!config.model.all_attributes.includes(label)) {
|
if (!config.model.all_attributes.includes(label)) {
|
||||||
labels.add(label);
|
labels.add(label);
|
||||||
@ -99,7 +104,13 @@ export default function SearchFilterGroup({
|
|||||||
if (camera == "birdseye") {
|
if (camera == "birdseye") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cameraConfig = config.cameras[camera];
|
const cameraConfig = config.cameras[camera];
|
||||||
|
|
||||||
|
if (!cameraConfig) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Object.entries(cameraConfig.zones).map(([name, _]) => {
|
Object.entries(cameraConfig.zones).map(([name, _]) => {
|
||||||
zones.add(name);
|
zones.add(name);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -107,7 +107,13 @@ export default function SearchView({
|
|||||||
if (camera == "birdseye") {
|
if (camera == "birdseye") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cameraConfig = config.cameras[camera];
|
const cameraConfig = config.cameras[camera];
|
||||||
|
|
||||||
|
if (!cameraConfig) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cameraConfig.objects.track.forEach((label) => {
|
cameraConfig.objects.track.forEach((label) => {
|
||||||
labels.add(label);
|
labels.add(label);
|
||||||
});
|
});
|
||||||
@ -139,7 +145,13 @@ export default function SearchView({
|
|||||||
if (camera == "birdseye") {
|
if (camera == "birdseye") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cameraConfig = config.cameras[camera];
|
const cameraConfig = config.cameras[camera];
|
||||||
|
|
||||||
|
if (!cameraConfig) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Object.entries(cameraConfig.zones).map(([name, _]) => {
|
Object.entries(cameraConfig.zones).map(([name, _]) => {
|
||||||
zones.add(name);
|
zones.add(name);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user