mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
document bug fix
This commit is contained in:
committed by
Aiden McClelland
parent
a72c1c5499
commit
60320e3083
@@ -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 = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user