mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
UI Fixes (#17762)
* Fix handling of non existing cameras in groups * Update docs * Improve typing
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user