This commit is contained in:
Josh Hawkins 2024-05-25 21:37:53 -05:00 committed by GitHub
parent 681c7367d7
commit 3f171e7670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ def update_yaml(data, key_path, new_value):
temp[key[0]] += [{}] * (key[1] - len(temp[key[0]]) + 1) temp[key[0]] += [{}] * (key[1] - len(temp[key[0]]) + 1)
temp = temp[key[0]][key[1]] temp = temp[key[0]][key[1]]
else: else:
if key not in temp: if key not in temp or temp[key] is None:
temp[key] = {} temp[key] = {}
temp = temp[key] temp = temp[key]

View File

@ -663,6 +663,7 @@ export function CameraGroupEdit({
<FormDescription> <FormDescription>
Select cameras for this group. Select cameras for this group.
</FormDescription> </FormDescription>
<FormMessage />
{[ {[
...(birdseyeConfig?.enabled ? ["birdseye"] : []), ...(birdseyeConfig?.enabled ? ["birdseye"] : []),
...Object.keys(config?.cameras ?? {}), ...Object.keys(config?.cameras ?? {}),
@ -680,7 +681,6 @@ export function CameraGroupEdit({
/> />
</FormControl> </FormControl>
))} ))}
<FormMessage />
</FormItem> </FormItem>
)} )}
/> />