grouped pagination cursor logic changes

This commit is contained in:
rahulramesha 2024-03-27 16:13:13 +05:30
parent faec7d98a9
commit 57133122ec

View File

@ -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<Record<TIssueParams, string | boolean>> = {
...filterParams,
cursor: pageCursor,
per_page: (groupId ? options.perPageCount * 2 : options.perPageCount).toString(),
per_page: options.perPageCount.toString(),
};
if (options.groupedBy) {