Skip to content

Commit ed8e84f

Browse files
committed
fix sidebar highlighting
1 parent e0521c8 commit ed8e84f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

site/src/modules/management/OrganizationSidebarView.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export const OrganizationSidebarView: FC<SidebarProps> = ({
6060
};
6161

6262
function urlForSubpage(organizationName: string, subpage = ""): string {
63-
return `/organizations/${organizationName}/${subpage}`;
63+
return [`/organizations/${organizationName}`, subpage]
64+
.filter(Boolean)
65+
.join("/");
6466
}
6567

6668
interface OrganizationsSettingsNavigationProps {

site/src/pages/GroupsPage/GroupsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const GroupsPage: FC = () => {
7878
<GroupsPageView
7979
groups={groupsQuery.data}
8080
canCreateGroup={permissions.createGroup}
81-
isTemplateRBACEnabled={groupsEnabled}
81+
groupsEnabled={groupsEnabled}
8282
/>
8383
</>
8484
);

0 commit comments

Comments
 (0)