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:
secustor
2024-01-25 16:12:42 +01:00
parent e49447728b
commit dc7ae8b20a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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}>