Przeglądaj źródła

fix useEffect at sidebar

Aykut Saraç 3 lat temu
rodzic
commit
53b61da68c
1 zmienionych plików z 1 dodań i 1 usunięć
  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>