fix: vuex store mutation violation when saving user settings
This commit is contained in:
parent
dd0e04b106
commit
4c24118b48
1 changed files with 3 additions and 1 deletions
|
@ -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')})
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue