From 7047431380a5aaef07e23442da61a490ba8aa122 Mon Sep 17 00:00:00 2001 From: devleejb Date: Thu, 29 Feb 2024 19:59:42 +0900 Subject: [PATCH] Fix excessive displaying presences --- frontend/src/components/headers/DocumentHeader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") {