forked from Github/frigate
Camera group dialog changes and fixes (#11117)
* camera group dialog changes and fixes * use drawer on mobile * spacing
This commit is contained in:
@@ -38,7 +38,13 @@ function Live() {
|
||||
// settings
|
||||
|
||||
const includesBirdseye = useMemo(() => {
|
||||
if (config && cameraGroup && cameraGroup != "default") {
|
||||
if (
|
||||
config &&
|
||||
Object.keys(config.camera_groups).length &&
|
||||
cameraGroup &&
|
||||
config.camera_groups[cameraGroup] &&
|
||||
cameraGroup != "default"
|
||||
) {
|
||||
return config.camera_groups[cameraGroup].cameras.includes("birdseye");
|
||||
} else {
|
||||
return false;
|
||||
@@ -50,7 +56,12 @@ function Live() {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (cameraGroup && cameraGroup != "default") {
|
||||
if (
|
||||
Object.keys(config.camera_groups).length &&
|
||||
cameraGroup &&
|
||||
config.camera_groups[cameraGroup] &&
|
||||
cameraGroup != "default"
|
||||
) {
|
||||
const group = config.camera_groups[cameraGroup];
|
||||
return Object.values(config.cameras)
|
||||
.filter((conf) => conf.enabled && group.cameras.includes(conf.name))
|
||||
|
||||
Reference in New Issue
Block a user