From: Lisa Knox Date: Fri, 5 Apr 2024 15:45:15 +0000 (-0400) Subject: 21364: added commentary Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- 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 f21343819e..8e5ad1bec1 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,10 @@ export class SearchResultsMiddlewareService extends DataExplorerMiddlewareServic api.dispatch(progressIndicatorActions.START_WORKING(this.id)) api.dispatch(dataExplorerActions.SET_IS_NOT_FOUND({ id: this.id, isNotFound: false })); + //In all other data tables, itemsAvailable will equal the number of returned items for a single session. + //In SearchResultsPanel, multiple sessions can be queried so items available needs to be + //reset in order to prevent adding the current value to the previous value every time + //the 'load more' button is clicked. api.dispatch(resetItemsAvailable()); sessions.forEach(session => {