1 parent 911ed7a commit 3c047d3Copy full SHA for 3c047d3
1 file changed
src/components/cards/CardMenuEntries.vue
@@ -175,7 +175,8 @@ export default {
175
},
176
deleteCard() {
177
this.$store.dispatch('deleteCard', this.card)
178
- showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', this.card))
+ const undoCard = { ...this.card, deletedAt: 0 }
179
+ showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard))
180
181
changeCardDoneStatus() {
182
this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })
0 commit comments