diff --git a/frontend/src/components/headers/DocumentHeader.tsx b/frontend/src/components/headers/DocumentHeader.tsx index 1cd81722..5503bda1 100644 --- a/frontend/src/components/headers/DocumentHeader.tsx +++ b/frontend/src/components/headers/DocumentHeader.tsx @@ -55,7 +55,7 @@ function DocumentHeader() { const unsubscribe = editorState.doc.subscribe("others", (event) => { if (event.type === "watched") { - pushToPresenceList(event.value); + setPresenceList(editorState.doc?.getPresences?.() ?? []); } if (event.type === "unwatched") {