X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a080578919155fc6f6d1be2f966951b629ae5b45..f626dd268140b4ef406a2ec0c6568f6ca0298e1d:/src/store/navigation/navigation-action.ts diff --git a/src/store/navigation/navigation-action.ts b/src/store/navigation/navigation-action.ts index f3f9cafe7f..5208623174 100644 --- a/src/store/navigation/navigation-action.ts +++ b/src/store/navigation/navigation-action.ts @@ -33,10 +33,6 @@ export const setProjectItem = (itemId: string, itemMode: ItemMode) => if (treeItem) { - if (itemMode === ItemMode.OPEN || itemMode === ItemMode.BOTH) { - dispatch(projectActions.TOGGLE_PROJECT_TREE_ITEM_OPEN(treeItem.data.uuid)); - } - const resourceUrl = getResourceUrl(treeItem.data); if (itemMode === ItemMode.ACTIVE || itemMode === ItemMode.BOTH) { @@ -52,6 +48,9 @@ export const setProjectItem = (itemId: string, itemMode: ItemMode) => promise .then(() => dispatch(() => { + 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})); }));