fix redo not working

This commit is contained in:
sawhney17
2022-06-17 15:50:28 +04:00
parent 899d945eb8
commit 6002853ce4

View File

@@ -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) => {