Skip to content

Commit 2ccaa10

Browse files
committed
fix(app): open workspace if navigating to session in workspace
1 parent e92d5b5 commit 2ccaa10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/src/pages/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,10 @@ export default function Layout(props: ParentProps) {
745745
const directory = base64Decode(dir)
746746
setStore("lastSession", directory, id)
747747
notification.session.markViewed(id)
748-
untrack(() => setStore("workspaceExpanded", directory, (current) => current ?? true))
748+
const expanded = untrack(() => store.workspaceExpanded[directory])
749+
if (expanded === false) {
750+
setStore("workspaceExpanded", directory, true)
751+
}
749752
requestAnimationFrame(() => scrollToSession(id, `${directory}:${id}`))
750753
},
751754
{ defer: true },

0 commit comments

Comments
 (0)