mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
grouped pagination cursor logic changes
This commit is contained in:
parent
faec7d98a9
commit
57133122ec
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user