Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix editor tags not updated when creating note in a tag

Abdullah Atta9b3430b5d9d7
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) {