Skip to content

Commit 6405fe6

Browse files
authored
Fix #7120: Breadcrumb shows a trailing separator when there is only one item (#7133)
1 parent ef05cdd commit 6405fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lib/breadcrumb/BreadCrumb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export const BreadCrumb = React.memo(
263263
<nav {...rootProps}>
264264
<ol {...menuProps}>
265265
{home}
266-
{home && separator}
266+
{home && !!items?.length && separator}
267267
{items}
268268
</ol>
269269
</nav>

0 commit comments

Comments
 (0)