Pārlūkot izejas kodu

lint-frontend Files.tsx (#1089)

for lint-frontend exhaustive deps

Co-authored-by: Robert Brennan <accounts@rbren.io>
808vita 1 gadu atpakaļ
vecāks
revīzija
f0559892ab
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      frontend/src/components/Files.tsx

+ 1 - 0
frontend/src/components/Files.tsx

@@ -68,6 +68,7 @@ function Files({
 
 
   useEffect(() => {
   useEffect(() => {
     getWorkspace().then((file) => dispatch(updateWorkspace(file)));
     getWorkspace().then((file) => dispatch(updateWorkspace(file)));
+    // eslint-disable-next-line react-hooks/exhaustive-deps
   }, []);
   }, []);
 
 
   if (workspaceTree.length <= 1) {
   if (workspaceTree.length <= 1) {