mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-06 12:46:29 +02:00
fix(docs): remove duplicate useDocumentSync call
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
99f2c2e063
commit
a906d3826b
@ -238,8 +238,6 @@ export const DocumentView = memo(function DocumentView({ room }: DocumentViewPro
|
||||
// cursor appears even after the element receives focus.
|
||||
useSetCursorPosition(!isWysiwygReady, ref);
|
||||
|
||||
const { isLoaded, scheduleDeltaSend } = useDocumentSync(room, client, composerModel, ref);
|
||||
|
||||
// Track whether the editor has content so we can hide the placeholder.
|
||||
const [hasContent, setHasContent] = useState(false);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user