mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Fix: use setUndo
This commit is contained in:
parent
6cbf15851e
commit
8d3179c507
1 changed files with 2 additions and 2 deletions
|
|
@ -224,10 +224,10 @@ export class ReviewerState {
|
|||
const noteIds = [this.currentCard.card.noteId];
|
||||
if (this._cardData.marked) {
|
||||
await removeNoteTags({ noteIds, tags: "marked" });
|
||||
this.undoStatus!.undo = tr.actionsRemoveTag();
|
||||
this.setUndo(tr.actionsRemoveTag());
|
||||
} else {
|
||||
await addNoteTags({ noteIds, tags: "marked" });
|
||||
this.undoStatus!.undo = tr.actionsUpdateTag();
|
||||
this.setUndo(tr.actionsUpdateTag());
|
||||
}
|
||||
this.marked.update($marked => !$marked);
|
||||
this._cardData.marked = !this._cardData.marked;
|
||||
|
|
|
|||
Loading…
Reference in a new issue