Fix broken pagination split logic
This commit is contained in:
parent
6821735f65
commit
7378fd1f20
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ import type {
|
||||||
export const splitPaginatedQuery = (key: any) => {
|
export const splitPaginatedQuery = (key: any) => {
|
||||||
const { startIndex, limit, ...filter } = key;
|
const { startIndex, limit, ...filter } = key;
|
||||||
|
|
||||||
if (startIndex === undefined || limit === undefined) {
|
if (startIndex !== undefined || limit !== undefined) {
|
||||||
return {
|
return {
|
||||||
filter,
|
filter,
|
||||||
pagination: {
|
pagination: {
|
||||||
|
|
Reference in a new issue