replace axiosInstance in the AdvancedSettings fetchData utils to replace the api call with the getFetchClient get method

This commit is contained in:
Simone Taeggi 2023-01-05 17:01:16 +01:00
parent ee4fc14689
commit 2d2d79028d

View File

@ -1,7 +1,9 @@
import { getFetchClient } from '@strapi/admin/admin/src/utils/getFetchClient';
import { axiosInstance, getRequestURL } from '../../../utils';
const fetchData = async () => {
const { data } = await axiosInstance.get(getRequestURL('advanced'));
const { get } = getFetchClient();
const { data } = await get(getRequestURL('advanced'));
return data;
};