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,
|
birdseyeConfig,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (currentGridLayout) {
|
|
||||||
setGridLayout(currentGridLayout);
|
|
||||||
}
|
|
||||||
// we know that these deps are correct
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, [isEditMode, setGridLayout]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isGridLayoutLoaded) {
|
if (isGridLayoutLoaded) {
|
||||||
if (gridLayout) {
|
if (gridLayout) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user