Use underscore to unify naming
[MAILPOET-2639]
This commit is contained in:
committed by
Jack Kitterhing
parent
1c1f0313f0
commit
f001542b3e
@@ -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',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@@ -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' : '',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user