diff --git a/lib/utils/index.ts b/lib/utils/index.ts index d132687..b600b7f 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -16,7 +16,7 @@ function formatParams (queryKey: string, value: any): string[] { queryKey = queryKey.replace(/=/g, '') let result: string[] = [] - switch (value.constructor) { + switch (value && value.constructor) { case String: case Number: case Boolean: