mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 14:15:22 +03:00
Reset edit state when group changes
This commit is contained in:
parent
2a0a8a5e85
commit
70abf0a45f
@ -91,8 +91,16 @@ export default function DraggableGridLayout({
|
||||
);
|
||||
}, [config]);
|
||||
|
||||
// editing
|
||||
|
||||
const [editGroup, setEditGroup] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setEditGroup(false);
|
||||
}, [cameraGroup]);
|
||||
|
||||
// camera state
|
||||
|
||||
const [currentCameras, setCurrentCameras] = useState<CameraConfig[]>();
|
||||
const [currentIncludeBirdseye, setCurrentIncludeBirdseye] =
|
||||
useState<boolean>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user