From 7a840279498805223af62491cb9b18fd1335bc9c Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Fri, 5 Apr 2024 11:45:15 -0400 Subject: [PATCH] 21364: added commentary Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../search-results-panel/search-results-middleware-service.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 => { -- 2.30.2