fix: treat empty valued env variables as false | FE (#18428)
* converting empty env values to boolean before storing in store * triming and checking empty values * Empty commit for test Co-authored-by: Anubhav <anubhav@appsmith.com>
This commit is contained in:
parent
c5ae0521ec
commit
236214f182
|
|
@ -40,6 +40,14 @@ export function* FetchAdminSettingsSaga() {
|
|||
cloudHosting,
|
||||
),
|
||||
};
|
||||
|
||||
// Converting empty values to boolean false
|
||||
Object.keys(settings).forEach((key) => {
|
||||
if ((settings[key] as string).trim() === "") {
|
||||
settings[key] = false;
|
||||
}
|
||||
});
|
||||
|
||||
yield put({
|
||||
type: ReduxActionTypes.FETCH_ADMIN_SETTINGS_SUCCESS,
|
||||
payload: settings,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user