mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix broken pagination split logic
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user