refs #13887 Merge branch 'origin/13887-extract-common-functionality-from-project...
[arvados.git] / src / store / navigation / navigation-action.ts
index f8687ed754ad51f4604b4541361c5e3aff318fb5..ffb0f7acf6f5fc3e69b1c0295936f6ee8c4eacc5 100644 (file)
@@ -7,10 +7,9 @@ import { projectActions, getProjectList } from "../project/project-action";
 import { push } from "react-router-redux";
 import { TreeItemStatus } from "../../components/tree/tree";
 import { findTreeItem } from "../project/project-reducer";
-import { dataExplorerActions } from "../data-explorer/data-explorer-action";
-import { PROJECT_PANEL_ID } from "../../views/project-panel/project-panel";
 import { RootState } from "../store";
 import { Resource, ResourceKind } from "../../models/resource";
+import { projectPanelActions } from "../project-panel/project-panel-action";
 import { getCollectionUrl } from "../../models/collection";
 import { getProjectUrl } from "../../models/project";
 
@@ -53,8 +52,8 @@ export const setProjectItem = (itemId: string, itemMode: ItemMode) =>
                     if (itemMode === ItemMode.OPEN || itemMode === ItemMode.BOTH) {
                         dispatch(projectActions.TOGGLE_PROJECT_TREE_ITEM_OPEN(treeItem.data.uuid));
                     }
-                    dispatch(dataExplorerActions.RESET_PAGINATION({id: PROJECT_PANEL_ID}));
-                    dispatch(dataExplorerActions.REQUEST_ITEMS({id: PROJECT_PANEL_ID}));
+                    dispatch(projectPanelActions.RESET_PAGINATION());
+                    dispatch(projectPanelActions.REQUEST_ITEMS());
                 }));
 
         }