⚡ Updates key names
This commit is contained in:
@@ -71,7 +71,7 @@ export default {
|
||||
/* When form submitteed, update VueX store with new appConfig, and close modal */
|
||||
saveToState() {
|
||||
const processedFormData = this.removeUndefinedValues(this.formData);
|
||||
this.$store.commit(StoreKeys.UPDATE_APP_CONFIG, processedFormData);
|
||||
this.$store.commit(StoreKeys.SET_APP_CONFIG, processedFormData);
|
||||
this.$modal.hide(this.modalName);
|
||||
this.$store.commit(StoreKeys.SET_MODAL_OPEN, false);
|
||||
this.$store.commit(StoreKeys.SET_EDIT_MODE, true);
|
||||
|
||||
@@ -55,7 +55,7 @@ export default {
|
||||
methods: {
|
||||
/* When form submitteed, update VueX store with new pageInfo, and close modal */
|
||||
saveToState() {
|
||||
this.$store.commit(StoreKeys.UPDATE_PAGE_INFO, this.formData);
|
||||
this.$store.commit(StoreKeys.SET_PAGE_INFO, this.formData);
|
||||
this.$modal.hide(this.modalName);
|
||||
this.$store.commit(StoreKeys.SET_MODAL_OPEN, false);
|
||||
this.$store.commit(StoreKeys.SET_EDIT_MODE, true);
|
||||
|
||||
Reference in New Issue
Block a user