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 (