mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Add check for undefined list query
This commit is contained in:
@@ -20,7 +20,7 @@ import type {
|
|||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user