Skip to content

Commit

Permalink
fix: CBreadcrumbRouter: display route only if it has 'name' key
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed Jul 23, 2020
1 parent 0c6b6cb commit e4d743d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/breadcrumb/CBreadcrumbRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const CBreadcrumbRouter = props => {
exact: route.exact
}))
return { ...route, currPath }
}).filter(route => route)
}).filter(route => route && route.name)

items = currRoutes.map(route => {
return CBreadcrumbRouteItem(route, currPath)
})
Expand Down

0 comments on commit e4d743d

Please sign in to comment.