Fix collapse all folders

This commit is contained in:
Gregory Schier
2025-11-26 07:19:12 -08:00
parent 2edd33b6e3
commit dfa6f1c5b4

View File

@@ -254,7 +254,7 @@ function Sidebar({ className }: { className?: string }) {
for (const n of node.children ?? []) {
if (n.item.model !== 'folder') continue;
newCollapsed[n.item.id] = true;
newCollapsed = next(n, collapsed);
newCollapsed = next(n, newCollapsed);
}
return newCollapsed;
};