From 36ef105a8a0fcecf13da614a977df2edb1c7ae0e Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 20 Mar 2024 11:43:52 +0500 Subject: [PATCH] web: fix editor tags not updated when creating note in a tag --- apps/web/src/components/editor/header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/header.tsx b/apps/web/src/components/editor/header.tsx index aecb999ad..0b32c1e8f 100644 --- a/apps/web/src/components/editor/header.tsx +++ b/apps/web/src/components/editor/header.tsx @@ -42,7 +42,7 @@ function Header(props: HeaderProps) { useEffect(() => { refreshTags(); - }, [id, refreshTags]); + }, [id, refreshTags, session?.type]); const setTag = useCallback( async function (noteId: string, tags: Tag[], value: string) {