diff --git a/src/apiClient/index.ts b/src/apiClient/index.ts index 51489e37..17449932 100644 --- a/src/apiClient/index.ts +++ b/src/apiClient/index.ts @@ -16,7 +16,7 @@ const parseParams = (params: object) => { keys.forEach(key => { const isParamTypeObject = typeof params[key] === 'object' - const isParamTypeArray = isParamTypeObject && params[key].length >= 0 + const isParamTypeArray = isParamTypeObject && params[key] && params[key].length >= 0 if (!isParamTypeObject) { options += `${key}=${params[key]}&`