Explorar o código

fix useEffect at sidebar

Aykut Saraç %!s(int64=3) %!d(string=hai) anos
pai
achega
53b61da68c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Sidebar/index.tsx

+ 1 - 1
src/components/Sidebar/index.tsx

@@ -119,7 +119,7 @@ export const Sidebar = () => {
         setJson(data.target?.result as string);
       };
     }
-  }, [jsonFile]);
+  }, [jsonFile, setJson]);
 
   return (
     <StyledSidebar>