Skip to content

Commit

Permalink
Fix set mount point bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Feb 8, 2023
1 parent 38cab32 commit 404fb63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/navigation/public/top_nav_menu/top_nav_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ export function TopNavMenu<QT extends AggregateQuery | Query = Query>(
if (setMenuMountPoint) {
return (
<>
<MountPointPortal setMountPoint={setMenuMountPoint}>
<MountPointPortal
setMountPoint={(mountPoint) => {
setMenuMountPoint(mountPoint);
}}
>
<span className={`${wrapperClassName} kbnTopNavMenu__badgeWrapper`}>
{renderBadges()}
{renderMenu(menuClassName)}
Expand Down

0 comments on commit 404fb63

Please sign in to comment.