Refactor to apply global navigation actions
[arvados-workbench2.git] / src / views / collection-panel / collection-panel.tsx
index 7621d95a05656c89c167e3be62c44669d6c1b21b..d22dd0de289122cdf088504a614f1042c6254161 100644 (file)
@@ -21,7 +21,6 @@ import { CollectionTagForm } from './collection-tag-form';
 import { deleteCollectionTag } from '~/store/collection-panel/collection-panel-action';
 import { snackbarActions } from '~/store/snackbar/snackbar-actions';
 import { getResource } from '~/store/resources/resources';
-import { loadCollection } from '../../store/collection-panel/collection-panel-action';
 import { contextMenuActions } from '~/store/context-menu/context-menu-actions';
 import { ContextMenuKind } from '~/views-components/context-menu/context-menu';
 
@@ -162,13 +161,6 @@ export const CollectionPanel = withStyles(styles)(
                 }));
             }
 
-            componentDidMount() {
-                const { match, item } = this.props;
-                if (!item && match.params.id) {
-                    this.props.dispatch<any>(loadCollection(match.params.id));
-                }
-            }
-
         }
     )
 );