fix(app): don't close sidebar on session change (#13013)

This commit is contained in:
Adam
2026-02-10 14:45:52 -06:00
committed by GitHub
parent 4f6b929784
commit 92a77b72fb
2 changed files with 36 additions and 14 deletions

View File

@@ -181,20 +181,6 @@ export default function Layout(props: ParentProps) {
aim.reset()
})
createEffect(
on(
() => ({ dir: params.dir, id: params.id }),
() => {
if (layout.sidebar.opened()) return
if (!state.hoverProject) return
aim.reset()
setState("hoverSession", undefined)
setState("hoverProject", undefined)
},
{ defer: true },
),
)
const autoselecting = createMemo(() => {
if (params.dir) return false
if (!state.autoselect) return false