From f82c891001db5f99a3e06cd07a545e8832fa4529 Mon Sep 17 00:00:00 2001 From: LeeJongBeom <52884648+devleejb@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:01:46 +0900 Subject: [PATCH] Fix excessive displaying presences (#170) --- 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") {