diff --git a/ee/client/lib/getFromRestApi.ts b/ee/client/lib/getFromRestApi.ts index ec9f3515411..93030d13346 100644 --- a/ee/client/lib/getFromRestApi.ts +++ b/ee/client/lib/getFromRestApi.ts @@ -14,7 +14,7 @@ export const getFromRestApi = ? void : Serialized>>, ): Promise>>> => { - const response = await APIClient.get(endpoint, params); + const response = await APIClient.get(endpoint.replace(/^\/+/, ''), params); if (typeof response === 'string') { throw new Error('invalid response data type');