From 2d2d79028d410253b01bbf635dca6f1a7ba773ee Mon Sep 17 00:00:00 2001 From: Simone Taeggi Date: Thu, 5 Jan 2023 17:01:16 +0100 Subject: [PATCH] replace axiosInstance in the AdvancedSettings fetchData utils to replace the api call with the getFetchClient get method --- .../admin/src/pages/AdvancedSettings/utils/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugins/users-permissions/admin/src/pages/AdvancedSettings/utils/api.js b/packages/plugins/users-permissions/admin/src/pages/AdvancedSettings/utils/api.js index 9e644114a8..97a4fc797e 100644 --- a/packages/plugins/users-permissions/admin/src/pages/AdvancedSettings/utils/api.js +++ b/packages/plugins/users-permissions/admin/src/pages/AdvancedSettings/utils/api.js @@ -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; };