fix: getOptionalString for app.support.items[].links[].title

Signed-off-by: Carl-Erik Bergström <cbergstrom@spotify.com>
This commit is contained in:
Carl-Erik Bergström
2024-09-10 13:04:08 +02:00
parent 8385261d30
commit f325258a2f
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') ?? '',
}),
),
})),