Fix client API URLs not being cleaned properly
This commit is contained in:
parent
3c4afaf7a1
commit
47dbd43116
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue