21364: added commentary Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
authorLisa Knox <lisaknox83@gmail.com>
Fri, 5 Apr 2024 15:45:15 +0000 (11:45 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Thu, 30 May 2024 17:58:10 +0000 (13:58 -0400)
services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts

index f21343819e1dc4c2b3054d2d0dc1e4966f3f7a5c..8e5ad1bec1d0065ced4d710db99089ba53d8c919 100644 (file)
@@ -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 => {