Camera group url fixes (#20295)

* Fix group url param where a camera group was not always loaded

Need to use the loading state from the usePersistence hook because values are loaded from indexed db asynchronously

* ensure group icon changes when using url param

* clean up
This commit is contained in:
Josh Hawkins
2025-09-30 16:53:48 -06:00
committed by GitHub
parent 1b6c246a44
commit 16c88fa8ac
3 changed files with 10 additions and 4 deletions
@@ -109,7 +109,7 @@ export function CameraGroupSelector({ className }: CameraGroupSelectorProps) {
// groups
const [group, setGroup, deleteGroup] = usePersistedOverlayState(
const [group, setGroup, , deleteGroup] = usePersistedOverlayState(
"cameraGroup",
"default" as string,
);