mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 22:25:24 +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]);
|
}, [config]);
|
||||||
|
|
||||||
|
// editing
|
||||||
|
|
||||||
const [editGroup, setEditGroup] = useState(false);
|
const [editGroup, setEditGroup] = useState(false);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setEditGroup(false);
|
||||||
|
}, [cameraGroup]);
|
||||||
|
|
||||||
|
// camera state
|
||||||
|
|
||||||
const [currentCameras, setCurrentCameras] = useState<CameraConfig[]>();
|
const [currentCameras, setCurrentCameras] = useState<CameraConfig[]>();
|
||||||
const [currentIncludeBirdseye, setCurrentIncludeBirdseye] =
|
const [currentIncludeBirdseye, setCurrentIncludeBirdseye] =
|
||||||
useState<boolean>();
|
useState<boolean>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user