Skip to content

Commit

Permalink
fix(api): correct field name merging
Browse files Browse the repository at this point in the history
['a', undefined].join(',') => a,
  • Loading branch information
steveoh committed Dec 5, 2024
1 parent 4f0997e commit 6ef5ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utilities/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const search = async (

try {
response = (await client
.get(`search/${table}/${fields.join(',')}/`, {
.get(`search/${table}/${fields.filter(Boolean).join(',')}/`, {
searchParams: {
...options,
apiKey,
Expand Down

0 comments on commit 6ef5ea5

Please sign in to comment.