fix the renaming of the get method

This commit is contained in:
Simone Taeggi 2023-01-09 15:47:03 +01:00
parent e3ba4e70d7
commit c38758401c

View File

@ -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;
})