From 2ace2e7ca42a3949de3e6c0327cd2648f344dee9 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Tue, 20 Feb 2024 13:53:43 -0500 Subject: [PATCH] 21386: cleanup Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- services/workbench2/src/components/data-table/data-table.tsx | 5 +++-- .../src/views-components/data-explorer/data-explorer.tsx | 2 ++ .../workbench2/src/views/project-panel/project-panel.tsx | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx index d1c7e1fc9d..fb5886681c 100644 --- a/services/workbench2/src/components/data-table/data-table.tsx +++ b/services/workbench2/src/components/data-table/data-table.tsx @@ -291,7 +291,7 @@ export const DataTable = withStyles(styles)( }; render() { - const { items, classes, working, columns, is404 } = this.props; + const { items, classes, columns, is404 } = this.props; const { isLoaded } = this.state; if (columns[0].name === this.checkBoxColumn.name) columns.shift(); columns.unshift(this.checkBoxColumn); @@ -323,10 +323,11 @@ export const DataTable = withStyles(styles)( return ( ); } else { + //if (isLoaded && !is404) return ( { + const working = !!progressIndicator.some(p => p.id === id && p.working); const dataExplorerState = getDataExplorer(dataExplorer, id); const currentRoute = router.location ? router.location.pathname : ""; const currentRefresh = localStorage.getItem(LAST_REFRESH_TIMESTAMP) || ""; @@ -41,6 +42,7 @@ const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect, currentItemUuid, isMSToolbarVisible, checkedList: multiselect.checkedList, + working, }; }; diff --git a/services/workbench2/src/views/project-panel/project-panel.tsx b/services/workbench2/src/views/project-panel/project-panel.tsx index 5e09bfa834..458c312742 100644 --- a/services/workbench2/src/views/project-panel/project-panel.tsx +++ b/services/workbench2/src/views/project-panel/project-panel.tsx @@ -264,10 +264,8 @@ type ProjectPanelProps = ProjectPanelDataProps & DispatchProp & WithStyles { const currentItemId = getProperty(PROJECT_PANEL_CURRENT_UUID)(state.properties); const project = getResource(currentItemId || "")(state.resources); - const working = !!state.progressIndicator.some(p => p.id === PROJECT_PANEL_ID && p.working); const is404 = state.dataExplorer[PROJECT_PANEL_ID].isResponse404; return { - working, currentItemId, project, is404, @@ -291,7 +289,6 @@ export const ProjectPanel = withStyles(styles)( contextMenuColumn={true} defaultViewIcon={ProjectIcon} defaultViewMessages={DEFAULT_VIEW_MESSAGES} - working={this.props.working} is404={this.props.is404} /> -- 2.30.2