fix(plugins/home/FeatureDocsCard): fall back to metadata.name if no title has been supplied
Signed-off-by: secustor <sebastian@poxhofer.at>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-home': patch
|
||||
---
|
||||
|
||||
Fall back to metadata.name if no metadata.title has been defined
|
||||
@@ -116,7 +116,7 @@ export const Content = (props: FeaturedDocsCardProps): JSX.Element => {
|
||||
}/`
|
||||
}
|
||||
>
|
||||
{d.metadata.title}
|
||||
{d.metadata.title ?? d.metadata.name}
|
||||
</Link>
|
||||
{d.metadata.description && (
|
||||
<Typography className={styles.docDescription}>
|
||||
|
||||
Reference in New Issue
Block a user