Fix: use setUndo

This commit is contained in:
Luc Mcgrady 2025-12-01 23:56:16 +00:00
parent 6cbf15851e
commit 8d3179c507
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -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;