From 4fc8858c64e9acf9072136c9bca256ec46249fdf Mon Sep 17 00:00:00 2001 From: dpschen Date: Wed, 8 Sep 2021 16:28:13 +0000 Subject: [PATCH] fix: kanban-card mutatation violation (#712) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/712 Reviewed-by: konrad Co-authored-by: dpschen Co-committed-by: dpschen --- src/components/tasks/partials/kanban-card.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/partials/kanban-card.vue b/src/components/tasks/partials/kanban-card.vue index f285f1bc..dfc89c3d 100644 --- a/src/components/tasks/partials/kanban-card.vue +++ b/src/components/tasks/partials/kanban-card.vue @@ -92,8 +92,10 @@ export default { methods: { markTaskAsDone(task) { this.loadingInternal = true - task.done = !task.done - this.$store.dispatch('tasks/update', task) + this.$store.dispatch('tasks/update', { + ...task, + done: !task.done, + }) .then(() => { if (task.done) { playPop()