From 6ef5ea5d8648d83531ab49caa22f305efb657a1b Mon Sep 17 00:00:00 2001 From: steveoh Date: Wed, 4 Dec 2024 20:28:25 -0700 Subject: [PATCH] fix(api): correct field name merging ['a', undefined].join(',') => a, --- packages/utilities/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utilities/src/api.ts b/packages/utilities/src/api.ts index 628e772d..2f8888b8 100644 --- a/packages/utilities/src/api.ts +++ b/packages/utilities/src/api.ts @@ -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,