a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix type error

+6 -1
+6 -1
components/TextBlock/index.tsx
··· 473 473 debounce.current = window.setTimeout(() => { 474 474 debounce.current = null; 475 475 476 - if (!view.state.selection.anchor || !view.docView) return; 476 + if ( 477 + !view.state.selection.anchor || 478 + //@ts-ignore I'm not sure why this type isn't here because it's used in the function underneath 479 + !view.docView 480 + ) 481 + return; 477 482 const coords = view.coordsAtPos(view.state.selection.anchor); 478 483 useEditorStates.setState({ lastXPosition: coords.left }); 479 484