mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 06:34:34 +00:00
fix redo not working
This commit is contained in:
@@ -64,12 +64,14 @@ export class TLHistory<S extends TLShape = TLShape, K extends TLEventMap = TLEve
|
||||
if (this.isPaused) return
|
||||
if (this.app.selectedTool.currentState.id !== 'idle') return
|
||||
if (this.pointer < this.stack.length - 1) {
|
||||
this.pointer++
|
||||
this.pointer++
|
||||
const snapshot = this.stack[this.pointer]
|
||||
this.deserialize(snapshot)
|
||||
}
|
||||
|
||||
this.app.notify('persist', null)
|
||||
else{
|
||||
this.app.notify('persist', null)
|
||||
}
|
||||
}
|
||||
|
||||
deserialize = (snapshot: TLDocumentModel) => {
|
||||
|
||||
Reference in New Issue
Block a user