Skip to content

Commit

Permalink
Update breadcrumbs-overflow.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 11, 2025
1 parent 8eda9d1 commit 57e67af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/js/components/header/breadcrumbs-overflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function generateOverflowButton() {
// If an overflow menu already exists let's use that
const overflowMenu = document.querySelector(
".jenkins-breadcrumbs__list-item .jenkins-button",
)?.parentNode;
);
if (overflowMenu) {
return overflowMenu;
return overflowMenu.parentNode;
}

// Generate an overflow menu to store breadcrumbs
Expand Down

0 comments on commit 57e67af

Please sign in to comment.