Change default table view to be displayed only after data fetch
[arvados-workbench2.git] / src / views-components / data-explorer / data-explorer.tsx
index 16dd59933411f5d394b31a58d5262fbff0418cda..74c3e64aaacf1139d5a90cff0c5ada69f40b14b2 100644 (file)
@@ -21,7 +21,9 @@ interface Props {
 }
 
 const mapStateToProps = (state: RootState, { id }: Props) => {
-    return getDataExplorer(state.dataExplorer, id);
+    const progress = state.progressIndicator.find(p => p.id === id);
+    const working = progress && progress.working;
+    return { ...getDataExplorer(state.dataExplorer, id), working };
 };
 
 const mapDispatchToProps = () => {