Skip to content

Commit 6b27340

Browse files
committed
fix(web): add back button to project settings
1 parent bd9ed2b commit 6b27340

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
@@ -151,11 +151,13 @@ export const SidebarUtilityMenu = memo(function SidebarUtilityMenu() {
151151
select: (location) =>
152152
/^\/settings(?:\/|$)/.test(location.pathname)
153153
? "settings"
154-
: location.pathname === "/usage"
155-
? "usage"
156-
: location.pathname === "/pull-requests"
157-
? "pull-requests"
158-
: null,
154+
: /^\/projects\/[^/]+\/?$/.test(location.pathname)
155+
? "project-settings"
156+
: location.pathname === "/usage"
157+
? "usage"
158+
: location.pathname === "/pull-requests"
159+
? "pull-requests"
160+
: null,
159161
});
160162
const { environments } = useEnvironments();
161163
// The page reads every connected server, so one of them offering pull requests is enough for

0 commit comments

Comments
 (0)