Browse Source

fix useEffect at sidebar

Aykut Saraç 3 năm trước cách đây
mục cha
commit
53b61da68c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>