mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
fix: clear camera zoom state on camera group switch
In-memory cameraZoomStates was not reset when switching groups, causing hydration to skip cameras already in state and keep zoom from the previous group. Resetting on group change lets hydration reload correct per-group zoom from localStorage. https://claude.ai/code/session_01WidMYGkyBCFf4L9PnFEiZ5
This commit is contained in:
parent
3f39819fbe
commit
893d71d5b4
@ -170,6 +170,7 @@ export default function DraggableGridLayout({
|
|||||||
setCurrentCameras(undefined);
|
setCurrentCameras(undefined);
|
||||||
setCurrentIncludeBirdseye(undefined);
|
setCurrentIncludeBirdseye(undefined);
|
||||||
setCurrentGridLayout(undefined);
|
setCurrentGridLayout(undefined);
|
||||||
|
setCameraZoomStates({});
|
||||||
}, [cameraGroup, setIsEditMode]);
|
}, [cameraGroup, setIsEditMode]);
|
||||||
|
|
||||||
// camera state
|
// camera state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user