Fix undo when marking a task as done

This commit is contained in:
kolaente 2021-04-15 17:17:45 +02:00
parent f9844384be
commit 30067935d1
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -180,11 +180,10 @@ export default {
this,
[{
title: 'Undo',
callback: () => this.markAsDone({
target: {
checked: !checked,
},
}),
callback: () => {
this.task.done = !this.task.done
this.markAsDone(!checked)
}
}],
)
})