mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +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({
|
dispatch({
|
||||||
type: 'GET_DATA',
|
type: 'GET_DATA',
|
||||||
});
|
});
|
||||||
const { get: getClient } = getFetchClient();
|
const fetchClient = getFetchClient();
|
||||||
|
|
||||||
const [{ permissions }, { routes }] = await Promise.all(
|
const [{ permissions }, { routes }] = await Promise.all(
|
||||||
[`/${pluginId}/permissions`, `/${pluginId}/routes`].map(async (endpoint) => {
|
[`/${pluginId}/permissions`, `/${pluginId}/routes`].map(async (endpoint) => {
|
||||||
const res = await getClient(endpoint);
|
const res = await fetchClient.get(endpoint);
|
||||||
|
|
||||||
return res.data;
|
return res.data;
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user