From 7a547bd60f35efc03631343d78b74d2b77903e05 Mon Sep 17 00:00:00 2001 From: Owaiseimdad Date: Thu, 20 Mar 2025 23:08:25 +0530 Subject: [PATCH] Quick fix for settings save page api call --- src/Features/Settings/settingsSlice.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Features/Settings/settingsSlice.js b/src/Features/Settings/settingsSlice.js index 345a8a264..d158a4ae4 100644 --- a/src/Features/Settings/settingsSlice.js +++ b/src/Features/Settings/settingsSlice.js @@ -30,7 +30,9 @@ export const getAppSettings = createAsyncThunk( export const updateAppSettings = createAsyncThunk( "settings/updateSettings", async ({ settings }, thunkApi) => { - networkService.setBaseUrl(settings.apiBaseUrl); + // The reason for commenting is that, previously, we had the flexibility to set the API base. + // However, now this could lead to an issue where it gets set to undefined. + // networkService.setBaseUrl(settings.apiBaseUrl); try { const parsedSettings = { apiBaseUrl: settings.apiBaseUrl,