Skip to content

Commit

Permalink
Fix #7120: Breadcrumb shows a trailing separator when there is only o…
Browse files Browse the repository at this point in the history
…ne item (#7133)
  • Loading branch information
meddvedev committed Sep 8, 2024
1 parent ef05cdd commit 6405fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/breadcrumb/BreadCrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export const BreadCrumb = React.memo(
<nav {...rootProps}>
<ol {...menuProps}>
{home}
{home && separator}
{home && !!items?.length && separator}
{items}
</ol>
</nav>
Expand Down

0 comments on commit 6405fe6

Please sign in to comment.