Skip to content

Commit bd0fbd4

Browse files
committed
fix: CBreadcrumbRouter: add key to items
1 parent a24f91c commit bd0fbd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CBreadcrumbRouter.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const getPaths = pathname => {
2020

2121
const CBreadcrumbRouteItem = ({name, path}, currPath) => {
2222
if (path === currPath) {
23-
return <CBreadcrumbItem active>{name}</CBreadcrumbItem>
23+
return <CBreadcrumbItem key={path} active>{name}</CBreadcrumbItem>
2424
} else {
25-
return <CBreadcrumbItem>
25+
return <CBreadcrumbItem key={path}>
2626
<Link to={path}>
2727
{name}
2828
</Link>

0 commit comments

Comments
 (0)