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