21037: fixed most of the linter warnings Arvados-DCO-1.1-Signed-off-by: Lisa Knox...
[arvados.git] / services / workbench2 / src / components / collection-panel-files / collection-panel-files.tsx
index 25259a824a6bce97beb8ff9d8fe660c2e2763b51..03d4551cabcc7a4beb4f2b33749046209ce89547 100644 (file)
@@ -326,6 +326,7 @@ export const CollectionPanelFiles = withStyles(styles)(
                 setLeftSearch("");
                 setRightSearch("");
             }
+            // eslint-disable-next-line react-hooks/exhaustive-deps
         }, [rightKey, rightData]); 
 
         const currentPDH = (collectionPanel.item || {}).portableDataHash;
@@ -333,6 +334,7 @@ export const CollectionPanelFiles = withStyles(styles)(
             if (currentPDH) {
                 fetchData([leftKey, rightKey], true);
             }
+            // eslint-disable-next-line react-hooks/exhaustive-deps
         }, [currentPDH]); 
 
         React.useEffect(() => {
@@ -451,6 +453,7 @@ export const CollectionPanelFiles = withStyles(styles)(
                     onItemMenuOpen(event, item, isWritable);
                 }
             },
+            // eslint-disable-next-line react-hooks/exhaustive-deps
             [path, setPath, collectionPanelFiles] 
         );
 
@@ -487,6 +490,7 @@ export const CollectionPanelFiles = withStyles(styles)(
             (ev, isWritable) => {
                 props.onOptionsMenuOpen(ev, isWritable);
             },
+            // eslint-disable-next-line react-hooks/exhaustive-deps
             [props.onOptionsMenuOpen] 
         );