From c38758401cf5156fb2a128d8e40d054706280d69 Mon Sep 17 00:00:00 2001 From: Simone Taeggi Date: Mon, 9 Jan 2023 15:47:03 +0100 Subject: [PATCH] fix the renaming of the get method --- .../users-permissions/admin/src/hooks/usePlugins/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/users-permissions/admin/src/hooks/usePlugins/index.js b/packages/plugins/users-permissions/admin/src/hooks/usePlugins/index.js index 0913bb71df..edf6a7e3b3 100644 --- a/packages/plugins/users-permissions/admin/src/hooks/usePlugins/index.js +++ b/packages/plugins/users-permissions/admin/src/hooks/usePlugins/index.js @@ -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; })