Skip to content

Commit c1489a5

Browse files
committed
Dashboard: Fix team links in header on pages outside /team layout
1 parent 1e924e0 commit c1489a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamSelectionUI.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export function TeamSelectionUI(props: {
9393
>
9494
<Link
9595
href={
96-
currentTeam && !props.isOnProjectPage
96+
currentTeam &&
97+
!props.isOnProjectPage &&
98+
pathname.startsWith("/team")
9799
? pathname.replace(currentTeam.slug, team.slug)
98100
: `/team/${team.slug}`
99101
}

0 commit comments

Comments
 (0)