Skip to content
Snippets Groups Projects
Unverified Commit 699de9ce authored by Matheus Barbosa Silva's avatar Matheus Barbosa Silva Committed by Diego Sampaio
Browse files

Fix Engagement Dashboard API requests (#24142)

parent 21045735
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ export const getFromRestApi =
? void
: Serialized<OperationParams<'GET', MatchPathPattern<TPath>>>,
): Promise<Serialized<OperationResult<'GET', MatchPathPattern<TPath>>>> => {
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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment