Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb58241

Browse files
committed
chore: cleanup
1 parent b8526ec commit bb58241

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/app/src/pages/layout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,9 @@ export default function Layout(props: ParentProps) {
19641964

19651965
<Collapsible.Content>
19661966
<nav class="flex flex-col gap-1 px-2">
1967-
<NewSessionItem slug={slug()} mobile={props.mobile} />
1967+
<Show when={workspaceSetting()}>
1968+
<NewSessionItem slug={slug()} mobile={props.mobile} />
1969+
</Show>
19681970
<Show when={loading()}>
19691971
<SessionSkeleton />
19701972
</Show>
@@ -2171,7 +2173,9 @@ export default function Layout(props: ParentProps) {
21712173
style={{ "overflow-anchor": "none" }}
21722174
>
21732175
<nav class="flex flex-col gap-1 px-2">
2174-
<NewSessionItem slug={slug()} mobile={props.mobile} />
2176+
<Show when={workspaceSetting()}>
2177+
<NewSessionItem slug={slug()} mobile={props.mobile} />
2178+
</Show>
21752179
<Show when={loading()}>
21762180
<SessionSkeleton />
21772181
</Show>

0 commit comments

Comments
 (0)