mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add check for undefined list query
This commit is contained in:
@@ -20,7 +20,7 @@ import type {
|
||||
} from './types';
|
||||
|
||||
export const splitPaginatedQuery = (key: any) => {
|
||||
const { startIndex, limit, ...filter } = key;
|
||||
const { startIndex, limit, ...filter } = key || {};
|
||||
|
||||
if (startIndex !== undefined || limit !== undefined) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user