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 3dc3d28 commit bf97017
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 bf97017

Please sign in to comment.