Use underscore to unify naming

[MAILPOET-2639]
This commit is contained in:
Pavel Dohnal
2020-01-30 08:36:23 +01:00
committed by Jack Kitterhing
parent 1c1f0313f0
commit f001542b3e
6 changed files with 23 additions and 23 deletions

View File

@@ -3,8 +3,8 @@ export default function mapFormDataAfterLoading(data) {
...data,
settings: {
...data.settings,
placeFormBellowAllPages: data.settings.placeFormBellowAllPages === '1',
placeFormBellowAllPosts: data.settings.placeFormBellowAllPosts === '1',
placeFormBellowAllPages: data.settings.place_form_bellow_all_pages === '1',
placeFormBellowAllPosts: data.settings.place_form_bellow_all_posts === '1',
},
};
}

View File

@@ -3,8 +3,8 @@ export default function mapFormDataBeforeSaving(data) {
...data,
settings: {
...data.settings,
placeFormBellowAllPages: data.settings.placeFormBellowAllPages === true ? '1' : '',
placeFormBellowAllPosts: data.settings.placeFormBellowAllPosts === true ? '1' : '',
place_form_bellow_all_pages: data.settings.placeFormBellowAllPages === true ? '1' : '',
place_form_bellow_all_posts: data.settings.placeFormBellowAllPosts === true ? '1' : '',
},
};
}