mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
fix io undo logic error (#4027)
This commit is contained in:
parent
963e622e40
commit
9e098c5dd9
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class UndoStack {
|
|||
|
||||
private push(): void {
|
||||
const entry = JSON.stringify(this.canvas?.toJSON(["id"]));
|
||||
if (entry === this.stack[this.stack.length - 1]) {
|
||||
if (entry === this.stack[this.index]) {
|
||||
return;
|
||||
}
|
||||
this.stack.length = this.index + 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue