From 3f171e7670aef11ad1b7861afa0e336c6e379083 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 25 May 2024 21:37:53 -0500 Subject: [PATCH] bugfixes (#11526) --- frigate/util/builtin.py | 2 +- web/src/components/filter/CameraGroupSelector.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/util/builtin.py b/frigate/util/builtin.py index 134d3d467..b7bfe6f96 100644 --- a/frigate/util/builtin.py +++ b/frigate/util/builtin.py @@ -237,7 +237,7 @@ def update_yaml(data, key_path, new_value): temp[key[0]] += [{}] * (key[1] - len(temp[key[0]]) + 1) temp = temp[key[0]][key[1]] else: - if key not in temp: + if key not in temp or temp[key] is None: temp[key] = {} temp = temp[key] diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx index 098d2f419..54320f29a 100644 --- a/web/src/components/filter/CameraGroupSelector.tsx +++ b/web/src/components/filter/CameraGroupSelector.tsx @@ -663,6 +663,7 @@ export function CameraGroupEdit({ Select cameras for this group. + {[ ...(birdseyeConfig?.enabled ? ["birdseye"] : []), ...Object.keys(config?.cameras ?? {}), @@ -680,7 +681,6 @@ export function CameraGroupEdit({ /> ))} - )} />