X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8d3cf07be66fb6b8a58c3999783ebc753c30428f..5b7b834bcab1a32fe77851d78fd984e1c96465ee:/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts diff --git a/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts b/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts index dab83e0114..f21343819e 100644 --- a/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts +++ b/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts @@ -63,6 +63,8 @@ export class SearchResultsMiddlewareService extends DataExplorerMiddlewareServic api.dispatch(progressIndicatorActions.START_WORKING(this.id)) api.dispatch(dataExplorerActions.SET_IS_NOT_FOUND({ id: this.id, isNotFound: false })); + api.dispatch(resetItemsAvailable()); + sessions.forEach(session => { const params = getParams(dataExplorer, searchValue, session.apiRevision); this.services.groupsService.contents('', params, session) @@ -135,6 +137,9 @@ export const setItems = (listResults: ListResults) => items: listResults.items.map(resource => resource.uuid), }); +export const resetItemsAvailable = () => + searchResultsPanelActions.RESET_ITEMS_AVAILABLE(); + export const appendItems = (listResults: ListResults) => searchResultsPanelActions.APPEND_ITEMS({ ...listResultsToDataExplorerItemsMeta(listResults),