* Fix handling of non existing cameras in groups

* Update docs

* Improve typing
This commit is contained in:
Nicolas Mowen
2025-04-17 13:48:09 -06:00
committed by GitHub
parent 1abd3c68ec
commit 8270967cdc
4 changed files with 26 additions and 3 deletions

View File

@@ -107,7 +107,13 @@ export default function SearchView({
if (camera == "birdseye") {
return;
}
const cameraConfig = config.cameras[camera];
if (!cameraConfig) {
return;
}
cameraConfig.objects.track.forEach((label) => {
labels.add(label);
});
@@ -139,7 +145,13 @@ export default function SearchView({
if (camera == "birdseye") {
return;
}
const cameraConfig = config.cameras[camera];
if (!cameraConfig) {
return;
}
Object.entries(cameraConfig.zones).map(([name, _]) => {
zones.add(name);
});