Fix broken pagination split logic

This commit is contained in:
jeffvli 2023-07-20 02:08:23 -07:00
parent 6821735f65
commit 7378fd1f20

View File

@ -22,7 +22,7 @@ import type {
export const splitPaginatedQuery = (key: any) => {
const { startIndex, limit, ...filter } = key;
if (startIndex === undefined || limit === undefined) {
if (startIndex !== undefined || limit !== undefined) {
return {
filter,
pagination: {