Merge pull request #1978 from Owaiseimdad/Quick-Fix-for-settings-setBaseUrl
Quick fix for settings save page api call
This commit is contained in:
1 file changed
+3
-1
@@ -30,7 +30,9 @@ export const getAppSettings = createAsyncThunk(
|
|||||||
export const updateAppSettings = createAsyncThunk(
|
export const updateAppSettings = createAsyncThunk(
|
||||||
"settings/updateSettings",
|
"settings/updateSettings",
|
||||||
async ({ settings }, thunkApi) => {
|
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 {
|
try {
|
||||||
const parsedSettings = {
|
const parsedSettings = {
|
||||||
apiBaseUrl: settings.apiBaseUrl,
|
apiBaseUrl: settings.apiBaseUrl,
|
||||||
|
|||||||
Reference in new issue
Block a user