diff --git a/frontend/src/hooks/api/getters/useOutdatedSdks/useOutdatedSdks.ts b/frontend/src/hooks/api/getters/useOutdatedSdks/useOutdatedSdks.ts index 979e94a740..91fbda67f1 100644 --- a/frontend/src/hooks/api/getters/useOutdatedSdks/useOutdatedSdks.ts +++ b/frontend/src/hooks/api/getters/useOutdatedSdks/useOutdatedSdks.ts @@ -1,12 +1,13 @@ import { fetcher, useApiGetter } from '../useApiGetter/useApiGetter'; import { OutdatedSdksSchema } from '../../../../openapi'; +import { formatApiPath } from 'utils/formatPath'; const PATH = 'api/admin/metrics/sdks/outdated'; export const useOutdatedSdks = () => { const { data, refetch, loading, error } = useApiGetter( - PATH, - () => fetcher(PATH, 'Outdated SDKs'), + formatApiPath(PATH), + () => fetcher(formatApiPath(PATH), 'Outdated SDKs'), { refreshInterval: 60 * 1000 }, );