From 57133122ec0867d816d605332886afcb349fb778 Mon Sep 17 00:00:00 2001 From: rahulramesha Date: Wed, 27 Mar 2024 16:13:13 +0530 Subject: [PATCH] grouped pagination cursor logic changes --- web/store/issue/helpers/issue-filter-helper.store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/store/issue/helpers/issue-filter-helper.store.ts b/web/store/issue/helpers/issue-filter-helper.store.ts index 46b3d089b..2ab777ef3 100644 --- a/web/store/issue/helpers/issue-filter-helper.store.ts +++ b/web/store/issue/helpers/issue-filter-helper.store.ts @@ -302,12 +302,12 @@ export class IssueFilterHelperStore implements IIssueFilterHelperStore { groupId?: string, subGroupId?: string ) { - const pageCursor = cursor ? cursor : groupId ? `${options.perPageCount * 2}:0:0` : `${options.perPageCount}:0:0`; + const pageCursor = cursor ? cursor : groupId ? `${options.perPageCount}:1:0` : `${options.perPageCount}:0:0`; const paginationParams: Partial> = { ...filterParams, cursor: pageCursor, - per_page: (groupId ? options.perPageCount * 2 : options.perPageCount).toString(), + per_page: options.perPageCount.toString(), }; if (options.groupedBy) {