fix: kanban-card mutatation violation (#712)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/712 Reviewed-by: konrad <k@knt.li> Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
9cee720ac9
commit
4fc8858c64
1 changed files with 4 additions and 2 deletions
|
@ -92,8 +92,10 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
markTaskAsDone(task) {
|
markTaskAsDone(task) {
|
||||||
this.loadingInternal = true
|
this.loadingInternal = true
|
||||||
task.done = !task.done
|
this.$store.dispatch('tasks/update', {
|
||||||
this.$store.dispatch('tasks/update', task)
|
...task,
|
||||||
|
done: !task.done,
|
||||||
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (task.done) {
|
if (task.done) {
|
||||||
playPop()
|
playPop()
|
||||||
|
|
Loading…
Reference in a new issue