mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-26 21:59:02 +03:00
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:
@@ -109,7 +109,7 @@ export function CameraGroupSelector({ className }: CameraGroupSelectorProps) {
|
||||
|
||||
// groups
|
||||
|
||||
const [group, setGroup, deleteGroup] = usePersistedOverlayState(
|
||||
const [group, setGroup, , deleteGroup] = usePersistedOverlayState(
|
||||
"cameraGroup",
|
||||
"default" as string,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user