mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-12 14:15:22 +03:00
remove unneeded useeffect
This commit is contained in:
parent
de432d7dd5
commit
fd79f0af45
@ -200,14 +200,6 @@ export default function DraggableGridLayout({
|
||||
birdseyeConfig,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (currentGridLayout) {
|
||||
setGridLayout(currentGridLayout);
|
||||
}
|
||||
// we know that these deps are correct
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [isEditMode, setGridLayout]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isGridLayoutLoaded) {
|
||||
if (gridLayout) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user