Sfoglia il codice sorgente

fix useEffect at sidebar

Aykut Saraç 3 anni fa
parent
commit
53b61da68c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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>