From bfd24571b2e2dedb4859ddbd8bee96ef714ccf60 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 26 Jan 2021 09:40:04 +0000 Subject: [PATCH] Fix client API URLs not being cleaned properly --- packages/client/src/api/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/api/api.js b/packages/client/src/api/api.js index a88398ed3a..5509221d5c 100644 --- a/packages/client/src/api/api.js +++ b/packages/client/src/api/api.js @@ -77,7 +77,7 @@ const makeCachedApiCall = async params => { const requestApiCall = method => async params => { const { url, cache = false } = params const fixedUrl = `/${url}`.replace("//", "/") - const enrichedParams = { ...params, method, fixedUrl } + const enrichedParams = { ...params, method, url: fixedUrl } return await (cache ? makeCachedApiCall : makeApiCall)(enrichedParams) }