Skip to content

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

web: do not collapse child nodes when collapsing parent

Abdullah Atta2dcf8863221f
diff --git a/apps/web/src/components/virtualized-tree/index.tsx b/apps/web/src/components/virtualized-tree/index.tsx
index e045f44a2..47fe114a4 100644
--- a/apps/web/src/components/virtualized-tree/index.tsx
+++ b/apps/web/src/components/virtualized-tree/index.tsx
@@ -219,7 +219,6 @@ export function VirtualizedTree<T>(props: TreeViewProps<T>) {
treeNode.parentId === node.id ||
removeIds.includes(treeNode.parentId)
) {
- expanded[treeNode.id] = false;
removeIds.push(treeNode.id);
}
}