document bug fix

This commit is contained in:
Drew Ansbacher
2021-08-24 12:57:55 -06:00
committed by Aiden McClelland
parent a72c1c5499
commit 60320e3083
2 changed files with 8 additions and 8 deletions

View File

@@ -93,7 +93,7 @@ export class Store<T extends { [key: string]: any }> {
while (stashEntry && stashEntry.revision.id > id) {
stashEntry.undo.forEach(u => {
applyOperation(document, u)
applyOperation(this.cache.data, u)
})
stashEntry = this.stash.nextLowerPair(stashEntry.revision.id)?.[1]
}
@@ -114,7 +114,7 @@ export class Store<T extends { [key: string]: any }> {
success = true
} catch (e) {
undo.forEach(u => {
applyOperation(document, u)
applyOperation(this.cache.data, u)
})
undo = []
}