diff --git a/public/app/core/components/AppChrome/MegaMenu/MegaMenu.tsx b/public/app/core/components/AppChrome/MegaMenu/MegaMenu.tsx index 66d8ddaaac9..8d707e5fdeb 100644 --- a/public/app/core/components/AppChrome/MegaMenu/MegaMenu.tsx +++ b/public/app/core/components/AppChrome/MegaMenu/MegaMenu.tsx @@ -43,7 +43,7 @@ export const MegaMenu = memo( .map((item) => enrichWithInteractionTracking(item, state.megaMenuDocked)); if (config.featureToggles.pinNavItems) { - const bookmarksItem = findByUrl(navItems, '/bookmarks'); + const bookmarksItem = navItems.find((item) => item.id === 'bookmarks'); if (bookmarksItem) { // Add children to the bookmarks section bookmarksItem.children = pinnedItems.reduce((acc: NavModelItem[], url) => {