fix(desktop): can't collapse project with active session

pull/6175/head
Adam 2025-12-25 19:02:43 -06:00
parent 603dae562a
commit 42f2bc7199
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import {
ParentProps,
Show,
Switch,
untrack,
type JSX,
} from "solid-js"
import { DateTime } from "luxon"
@ -323,7 +324,7 @@ export default function Layout(props: ParentProps) {
const id = params.id
setStore("lastSession", directory, id)
notification.session.markViewed(id)
layout.projects.expand(directory)
untrack(() => layout.projects.expand(directory))
requestAnimationFrame(() => scrollToSession(id))
})