diff --git a/src/utils/queryString.ts b/src/utils/queryString.ts index 851d73f..dd91fa0 100644 --- a/src/utils/queryString.ts +++ b/src/utils/queryString.ts @@ -12,6 +12,8 @@ export const convertObjectToQueryString = (params: { const queryString = new URLSearchParams(); Object.entries(params).forEach(([key, value]) => { + if (!value) return; + if (Array.isArray(value)) { value.forEach(valueItem => { queryString.append(toSnakeCase(key), valueItem || '');