fix: also remove from expandedIds when unpinning a notebook
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m26s

This commit is contained in:
Antigravity
2026-05-10 19:07:17 +00:00
parent 892a697cb9
commit 210b01c385

View File

@@ -547,6 +547,8 @@ export function Sidebar({ className, user }: { className?: string; user?: any })
const next = new Set(prev)
if (next.has(id)) {
next.delete(id)
// Also collapse the notebook when unpinning
setExpandedIds(e => { const ne = new Set(e); ne.delete(id); return ne })
} else {
next.add(id)
// Ensure it's also expanded when pinned