From c65a8d3cab073bf64000a16244319522f1fc439c Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Fri, 23 Sep 2022 16:03:01 +0100 Subject: [PATCH] reenable active state for home (#55566) --- public/app/core/components/MegaMenu/MegaMenu.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/public/app/core/components/MegaMenu/MegaMenu.tsx b/public/app/core/components/MegaMenu/MegaMenu.tsx index e1d6fea2309..4aa604a3175 100644 --- a/public/app/core/components/MegaMenu/MegaMenu.tsx +++ b/public/app/core/components/MegaMenu/MegaMenu.tsx @@ -46,16 +46,13 @@ export const MegaMenu = React.memo(({ onClose, searchBarHidden }) => { location ).map((item) => enrichWithInteractionTracking(item, true)); - const activeItem = getActiveItem(navTree, location.pathname); + const navItems = [homeItem, ...coreItems, ...pluginItems, ...configItems]; + + const activeItem = getActiveItem(navItems, location.pathname); return (
- +
); });