Skip to content

Commit fa06586

Browse files
committed
fix: breadcrumb duplicate keys detected #2505
close #2505
1 parent fff8d6c commit fa06586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: components/breadcrumb/Breadcrumb.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default {
7575
overlay = (
7676
<Menu>
7777
{route.children.map(child => (
78-
<Menu.Item key={child.breadcrumbName || child.path}>
78+
<Menu.Item key={child.path || child.breadcrumbName}>
7979
{itemRender({
8080
route: child,
8181
params,

0 commit comments

Comments
 (0)