mirror of
https://github.com/cudr/slate-collaborative.git
synced 2026-03-02 03:40:18 +00:00
fix: garbage cursors on client
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { SyncDoc, Path } from '../model'
|
||||
import { NodeJSON } from 'slate'
|
||||
|
||||
export const isTree = (node: NodeJSON): any => node.object !== 'text'
|
||||
export const isTree = (node: NodeJSON): any => node && node.object !== 'text'
|
||||
|
||||
export const getTarget = (doc: SyncDoc, path: Path) => {
|
||||
const iterate = (current: any, idx: number) => {
|
||||
|
||||
Reference in New Issue
Block a user