Fix cursor delete (#44)

This commit is contained in:
Ulion 2021-01-15 21:10:29 +08:00 committed by GitHub
parent e415684d64
commit 24dca9a49c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ export const AutomergeEditor = {
const doc = e.docSet.getDoc(docId)
const changed = Automerge.change<SyncDoc>(doc, (d: any) => {
delete d.cusors
delete d.cursors
})
e.onCursor && e.onCursor(null)