[ARVADOS-WORKBENCH2] updated: 2.3.0-162-ge4dd4d0e
Git user
git at public.arvados.org
Tue Feb 15 19:57:13 UTC 2022
Summary of changes:
.../collection-panel-files/collection-panel-files.tsx | 11 -----------
1 file changed, 11 deletions(-)
via e4dd4d0e84d0b14c9e71cd72f45e0099273476f1 (commit)
from b6bcf00e089f6f14f59a031ab0139b5420df9bdd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e4dd4d0e84d0b14c9e71cd72f45e0099273476f1
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Tue Feb 15 16:28:43 2022 -0300
18315: Removes unnecessary state handling code.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>
diff --git a/src/components/collection-panel-files/collection-panel-files.tsx b/src/components/collection-panel-files/collection-panel-files.tsx
index 1ee6df30..1f7e8603 100644
--- a/src/components/collection-panel-files/collection-panel-files.tsx
+++ b/src/components/collection-panel-files/collection-panel-files.tsx
@@ -201,7 +201,6 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState
const [path, setPath]: any = React.useState([]);
const [pathData, setPathData]: any = React.useState({});
const [isLoading, setIsLoading] = React.useState(false);
- const [collectionAutofetchEnabled, setCollectionAutofetchEnabled] = React.useState(false);
const [leftSearch, setLeftSearch] = React.useState('');
const [rightSearch, setRightSearch] = React.useState('');
@@ -314,10 +313,6 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState
if (id) {
onItemMenuOpen(event, item, isWritable);
-
- if (!collectionAutofetchEnabled) {
- setCollectionAutofetchEnabled(true);
- }
}
},
[onItemMenuOpen, isWritable, rightData] // eslint-disable-line react-hooks/exhaustive-deps
@@ -444,9 +439,6 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState
<IconButton
data-cy='collection-files-panel-options-btn'
onClick={(ev) => {
- if (!collectionAutofetchEnabled) {
- setCollectionAutofetchEnabled(true);
- }
onOptionsMenuOpen(ev, isWritable);
}}>
<CustomizeTableIcon />
@@ -516,9 +508,6 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState
className={classes.uploadButton}
data-cy='upload-button'
onClick={() => {
- if (!collectionAutofetchEnabled) {
- setCollectionAutofetchEnabled(true);
- }
onUploadDataClick();
}}
variant='contained'
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list