fix: vuex store mutation violation when saving user settings

This commit is contained in:
kolaente 2021-10-17 17:39:15 +02:00
parent dd0e04b106
commit 4c24118b48
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -450,7 +450,9 @@ export default {
this.settings.defaultListId = this.defaultList ? this.defaultList.id : 0 this.settings.defaultListId = this.defaultList ? this.defaultList.id : 0
await this.userSettingsService.update(this.settings) 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')}) this.$message.success({message: this.$t('user.settings.general.savedSuccess')})
}, },