refs #14534 Breadcrumbs are not updated after searching
[arvados-workbench2.git] / src / store / search-results-panel / search-results-panel-actions.ts
index 05da5b3e5787e36c1a9b97f128e11f4982994575..f7dc5d458f7fde7eb3af468253d4d816c5e5761f 100644 (file)
@@ -6,11 +6,13 @@ import { Dispatch } from 'redux';
 import { RootState } from '~/store/store';
 import { ServiceRepository } from '~/services/services';
 import { bindDataExplorerActions } from '~/store/data-explorer/data-explorer-action';
+import { setBreadcrumbs } from '~/store/breadcrumbs/breadcrumbs-actions';
 
 export const SEARCH_RESULTS_PANEL_ID = "searchResultsPanel";
 export const searchResultsPanelActions = bindDataExplorerActions(SEARCH_RESULTS_PANEL_ID);
 
 export const loadSearchResultsPanel = () =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
+        dispatch(setBreadcrumbs([{ label: 'Search results' }]));
         dispatch(searchResultsPanelActions.REQUEST_ITEMS());
     };
\ No newline at end of file