fix: wrong async order

This commit is contained in:
Dominik Pschenitschni 2021-10-11 21:40:36 +02:00
parent a3a3ef850c
commit 50fa592aad
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -694,9 +694,9 @@ export default {
} }
}, },
async changeList(list) { async changeList(list) {
this.$store.commit('kanban/removeTaskInBucket', this.task)
this.task.listId = list.id this.task.listId = list.id
await this.saveTask() await this.saveTask()
this.$store.commit('kanban/removeTaskInBucket', this.task)
}, },
toggleFavorite() { toggleFavorite() {
this.task.isFavorite = !this.task.isFavorite this.task.isFavorite = !this.task.isFavorite