Skip to content

Commit 4692a05

Browse files
Devansu-Yadavroboquat
authored andcommitted
minor: fix active state on license page
1 parent d3f0f59 commit 4692a05

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/dashboard/src/menu/Menu.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ export default function Menu() {
6868
const adminMenu: Entry = {
6969
title: "Admin",
7070
link: "/admin",
71-
alternatives: [...getAdminTabs().map((entry) => entry.link)],
71+
alternatives: [
72+
...getAdminTabs().reduce(
73+
(prevEntry, currEntry) =>
74+
currEntry.alternatives
75+
? [...prevEntry, ...currEntry.alternatives, currEntry.link]
76+
: [...prevEntry, currEntry.link],
77+
[] as string[],
78+
),
79+
],
7280
};
7381

7482
const handleFeedbackFormClick = () => {

0 commit comments

Comments
 (0)