We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92d5b5 commit 2ccaa10Copy full SHA for 2ccaa10
packages/app/src/pages/layout.tsx
@@ -745,7 +745,10 @@ export default function Layout(props: ParentProps) {
745
const directory = base64Decode(dir)
746
setStore("lastSession", directory, id)
747
notification.session.markViewed(id)
748
- untrack(() => setStore("workspaceExpanded", directory, (current) => current ?? true))
+ const expanded = untrack(() => store.workspaceExpanded[directory])
749
+ if (expanded === false) {
750
+ setStore("workspaceExpanded", directory, true)
751
+ }
752
requestAnimationFrame(() => scrollToSession(id, `${directory}:${id}`))
753
},
754
{ defer: true },
0 commit comments