14489-any-menus-persists-after-route-change
[arvados-workbench2.git] / src / views-components / data-explorer / data-explorer.tsx
index 710d202dfe25997c66dcde62f44ead0d9e469b10..78b4079500938707ad8808e0bcea7d29178621f2 100644 (file)
@@ -23,7 +23,8 @@ interface Props {
 const mapStateToProps = (state: RootState, { id }: Props) => {
     const progress = state.progressIndicator.find(p => p.id === id);
     const working = progress && progress.working;
-    return { ...getDataExplorer(state.dataExplorer, id), working };
+    const currentRoute = state.router.location ? state.router.location.pathname : '';
+    return { ...getDataExplorer(state.dataExplorer, id), working, currentRoute };
 };
 
 const mapDispatchToProps = () => {