Merge pull request #26597 from backstage/fix/support-button-should-allow-optional-title-for-link

Use getOptionalString for optional app.support.items[].links[].title
This commit is contained in:
Ben Lambert
2024-09-10 14:27:24 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Use getOptionalString for optional app.support.items[].links[].title
@@ -72,7 +72,7 @@ export function useSupportConfig(): SupportConfig {
links: (itemConf.getOptionalConfigArray('links') ?? []).flatMap(
linkConf => ({
url: linkConf.getString('url'),
title: linkConf.getString('title'),
title: linkConf.getOptionalString('title') ?? '',
}),
),
})),