mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
replace axiosInstance in the AdvancedSettings fetchData utils to replace the api call with the getFetchClient get method
This commit is contained in:
parent
ee4fc14689
commit
2d2d79028d
@ -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;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user