X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3b8d03f7063b162355bccfd71aeb2b8b67bbdbb..46605be9b9f2721cc9848323f904fb0ace5a2dbd:/services/workbench2/src/components/collection-panel-files/collection-panel-files.tsx diff --git a/services/workbench2/src/components/collection-panel-files/collection-panel-files.tsx b/services/workbench2/src/components/collection-panel-files/collection-panel-files.tsx index f1e50e0f0b..03d4551cab 100644 --- a/services/workbench2/src/components/collection-panel-files/collection-panel-files.tsx +++ b/services/workbench2/src/components/collection-panel-files/collection-panel-files.tsx @@ -326,14 +326,16 @@ export const CollectionPanelFiles = withStyles(styles)( setLeftSearch(""); setRightSearch(""); } - }, [rightKey, rightData]); // eslint-disable-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [rightKey, rightData]); const currentPDH = (collectionPanel.item || {}).portableDataHash; React.useEffect(() => { if (currentPDH) { fetchData([leftKey, rightKey], true); } - }, [currentPDH]); // eslint-disable-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [currentPDH]); React.useEffect(() => { if (rightData) { @@ -433,7 +435,7 @@ export const CollectionPanelFiles = withStyles(styles)( getInlineFileUrl(enhancedItem.url, config.keepWebServiceUrl, config.keepWebInlineServiceUrl), true ); - window.open(fileUrl, "_blank"); + window.open(fileUrl, "_blank", "noopener"); } } @@ -451,7 +453,8 @@ export const CollectionPanelFiles = withStyles(styles)( onItemMenuOpen(event, item, isWritable); } }, - [path, setPath, collectionPanelFiles] // eslint-disable-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps + [path, setPath, collectionPanelFiles] ); const getItemIcon = React.useCallback( @@ -487,7 +490,8 @@ export const CollectionPanelFiles = withStyles(styles)( (ev, isWritable) => { props.onOptionsMenuOpen(ev, isWritable); }, - [props.onOptionsMenuOpen] // eslint-disable-line react-hooks/exhaustive-deps + // eslint-disable-next-line react-hooks/exhaustive-deps + [props.onOptionsMenuOpen] ); return (