From 0a3e788d21760bcbe29b49fbbeb4d08569d56f23 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 23 Nov 2025 21:53:47 +0200 Subject: [PATCH] fix(client/collections): collections not visible after viewing attachments --- apps/client/src/widgets/collections/NoteList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/collections/NoteList.tsx b/apps/client/src/widgets/collections/NoteList.tsx index 1081cd6df..af5157fda 100644 --- a/apps/client/src/widgets/collections/NoteList.tsx +++ b/apps/client/src/widgets/collections/NoteList.tsx @@ -51,12 +51,12 @@ const ViewComponents: Record) { - const { note, noteContext, notePath, ntxId } = useNoteContext(); + const { note, noteContext, notePath, ntxId, viewScope } = useNoteContext(); const viewType = useNoteViewType(note); const [ enabled, setEnabled ] = useState(noteContext?.hasNoteList()); useEffect(() => { setEnabled(noteContext?.hasNoteList()); - }, [ noteContext, viewType ]) + }, [ noteContext, viewType, viewScope?.viewMode ]) return }