mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
refactor(breadcrumb): make title null and undefined causes the same behaviour (#43099)
This commit is contained in:
parent
3a67e46b60
commit
e78e2cb385
@ -11,7 +11,7 @@ type ItemRender = NonNullable<BreadcrumbProps['itemRender']>;
|
||||
type InternalItemRenderParams = AddParameters<ItemRender, [href?: string]>;
|
||||
|
||||
function getBreadcrumbName(route: InternalRouteType, params: any) {
|
||||
if (route.title === undefined) {
|
||||
if (route.title === undefined || route.title === null) {
|
||||
return null;
|
||||
}
|
||||
const paramsKeys = Object.keys(params).join('|');
|
||||
|
Loading…
Reference in New Issue
Block a user