fix: getOptionalString for app.support.items[].links[].title
Signed-off-by: Carl-Erik Bergström <cbergstrom@spotify.com>
This commit is contained in:
@@ -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') ?? '',
|
||||
}),
|
||||
),
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user