1 parent 8c29c1b commit 6c18f50Copy full SHA for 6c18f50
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