Skip to content

Commit 54512ec

Browse files
StiensWoutincognitojam
authored andcommitted
fix(web): add back button to project settings (pingdotgg#8168)
Upstream-PR: 8168
1 parent f9f2499 commit 54512ec

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎apps/web/src/components/sidebar/SidebarChrome.tsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,13 @@ export const SidebarUtilityMenu = memo(function SidebarUtilityMenu() {
136136
select: (location) =>
137137
/^\/settings(?:\/|$)/.test(location.pathname)
138138
? "settings"
139-
: location.pathname === "/usage"
140-
? "usage"
141-
: location.pathname === "/pull-requests"
142-
? "pull-requests"
143-
: null,
139+
: /^\/projects\/[^/]+\/?$/.test(location.pathname)
140+
? "project-settings"
141+
: location.pathname === "/usage"
142+
? "usage"
143+
: location.pathname === "/pull-requests"
144+
? "pull-requests"
145+
: null,
144146
});
145147
const { environments } = useEnvironments();
146148
// The page reads every connected server, so one of them offering pull requests is enough for

0 commit comments

Comments
 (0)