Updates key names

This commit is contained in:
Alicia Sykes
2021-10-28 23:40:27 +01:00
parent e4ea1c802d
commit 229e67aca8
3 changed files with 9 additions and 5 deletions

View File

@@ -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);