From 69a59f09359f4d590ccfb00ae5f6843e91062d0f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 6 Oct 2025 18:55:02 +0300 Subject: [PATCH] fix(collections/list): not reacting to expand/collapse button (closes #7209) --- apps/client/src/widgets/collections/legacy/ListOrGridView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx index b88812d72..274ef2111 100644 --- a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx +++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx @@ -59,8 +59,8 @@ function ListNoteCard({ note, parentNote, expand, highlightedTokens }: { note: F const [ isExpanded, setExpanded ] = useState(expand); const notePath = getNotePath(parentNote, note); - // Reset expand state if switching to another note. - useEffect(() => setExpanded(expand), [ note ]); + // Reset expand state if switching to another note, or if user manually toggled expansion state. + useEffect(() => setExpanded(expand), [ note, expand ]); return (