From d17d9fd0362867c5174747052536bb0e61f3351a Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Tue, 1 Nov 2022 20:21:09 +0000 Subject: [PATCH] Remove unnessessary brackets --- frontend/leeds-beer-quest/src/lib/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/leeds-beer-quest/src/lib/api.ts b/frontend/leeds-beer-quest/src/lib/api.ts index 104a023..58ef8be 100644 --- a/frontend/leeds-beer-quest/src/lib/api.ts +++ b/frontend/leeds-beer-quest/src/lib/api.ts @@ -8,10 +8,9 @@ export class API { let params = ""; params += ArrayToArrayUrlParams("categories", venueFilters?.categories.map((c) => c.name) ?? []); params += ArrayToArrayUrlParams("tags", venueFilters?.tags.map((v) => v.name) ?? [], params.length < 1); - params += venueFilters?.nameFilter ? `${(params.length < 1 ? "?" : "&")}search=${venueFilters.nameFilter}` : ""; + params += venueFilters?.nameFilter ? `${params.length < 1 ? "?" : "&"}search=${venueFilters.nameFilter}` : ""; const response = await fetch(`${this.baseAPIUrl}/venue${params}`); - console.log(`calling ${this.baseAPIUrl}/venue${params}`); return await response.json(); }