Skip to content

Commit 4619e9d

Browse files
adamdotdevinopencode
authored andcommitted
fix(app): sidebar remount
1 parent 4dc363f commit 4619e9d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/app/src/pages/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,10 +1917,10 @@ export default function Layout(props: ParentProps) {
19171917
renderPanel={() => <SidebarPanel project={currentProject()} />}
19181918
/>
19191919
</div>
1920-
<Show when={!layout.sidebar.opened() ? hoverProjectData() : undefined} keyed>
1921-
{(project) => (
1920+
<Show when={!layout.sidebar.opened() ? hoverProjectData()?.worktree : undefined} keyed>
1921+
{(worktree) => (
19221922
<div class="absolute inset-y-0 left-16 z-50 flex" onMouseEnter={aim.reset}>
1923-
<SidebarPanel project={project} />
1923+
<SidebarPanel project={hoverProjectData()} />
19241924
</div>
19251925
)}
19261926
</Show>

0 commit comments

Comments
 (0)