mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
fix the renaming of the get method
This commit is contained in:
parent
e3ba4e70d7
commit
c38758401c
@ -18,11 +18,11 @@ const usePlugins = (shouldFetchData = true) => {
|
||||
dispatch({
|
||||
type: 'GET_DATA',
|
||||
});
|
||||
const { get: getClient } = getFetchClient();
|
||||
const fetchClient = getFetchClient();
|
||||
|
||||
const [{ permissions }, { routes }] = await Promise.all(
|
||||
[`/${pluginId}/permissions`, `/${pluginId}/routes`].map(async (endpoint) => {
|
||||
const res = await getClient(endpoint);
|
||||
const res = await fetchClient.get(endpoint);
|
||||
|
||||
return res.data;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user