From 4c24118b4869e182eccf385e6ae798ba678fab6c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 17 Oct 2021 17:39:15 +0200 Subject: [PATCH] fix: vuex store mutation violation when saving user settings --- src/views/user/Settings.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/user/Settings.vue b/src/views/user/Settings.vue index 74541946..c7c6e32a 100644 --- a/src/views/user/Settings.vue +++ b/src/views/user/Settings.vue @@ -450,7 +450,9 @@ export default { this.settings.defaultListId = this.defaultList ? this.defaultList.id : 0 await this.userSettingsService.update(this.settings) - this.$store.commit('auth/setUserSettings', this.settings) + this.$store.commit('auth/setUserSettings', { + ...this.settings + }) this.$message.success({message: this.$t('user.settings.general.savedSuccess')}) },