permanent user store writes updates in separate transaction

This commit is contained in:
Kevin Jahns
2019-12-10 17:18:57 +01:00
parent d90c9b1cb2
commit 7f0e25dcba
2 changed files with 28 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ export const followRedone = (store, id) => {
item = getItem(store, nextID)
diff = nextID.clock - item.id.clock
nextID = item.redone
} while (nextID !== null)
} while (nextID !== null && item instanceof Item)
return {
item, diff
}