diff --git a/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx b/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx index 123c768e36..02e63e60e3 100644 --- a/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx +++ b/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx @@ -59,19 +59,19 @@ export const EntityRefLink = forwardRef( namespace?.toLocaleLowerCase('en-US') ?? ENTITY_DEFAULT_NAMESPACE, name, }; + const formattedEntityRefTitle = formatEntityRefTitle(entityRef, { + defaultKind, + }); const link = ( {children} - {!children && - (title ?? formatEntityRefTitle(entityRef, { defaultKind }))} + {!children && (title ?? formattedEntityRefTitle)} ); return title ? ( - - {link} - + {link} ) : ( link );