Aykut Saraç 3 лет назад
Родитель
Сommit
53b61da68c
1 измененных файлов с 1 добавлено и 1 удалено
  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>