mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 16:26:09 +01:00
This commit is contained in:
parent
a82fde6598
commit
c358f8f8ee
1 changed files with 3 additions and 1 deletions
|
|
@ -64,7 +64,9 @@ class Undo {
|
|||
}
|
||||
|
||||
public replace(doOperations: IOperation[]) {
|
||||
this.undoStack[this.undoStack.length - 1].doOperations = doOperations;
|
||||
if (this.undoStack.length > 0) {
|
||||
this.undoStack[this.undoStack.length - 1].doOperations = doOperations;
|
||||
}
|
||||
}
|
||||
|
||||
public add( doOperations: IOperation[], undoOperations: IOperation[]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue