diff --git a/.changeset/rude-ways-camp.md b/.changeset/rude-ways-camp.md new file mode 100644 index 0000000000..37413141bd --- /dev/null +++ b/.changeset/rude-ways-camp.md @@ -0,0 +1,5 @@ +--- +'@backstage/core': patch +--- + +Improve rendering of multiple support item links in the `SupportButton` diff --git a/packages/core/src/components/SupportButton/SupportButton.tsx b/packages/core/src/components/SupportButton/SupportButton.tsx index 7c532c0f8f..09bd27de2f 100644 --- a/packages/core/src/components/SupportButton/SupportButton.tsx +++ b/packages/core/src/components/SupportButton/SupportButton.tsx @@ -66,12 +66,12 @@ const SupportListItem = ({ item }: { item: SupportItem }) => { - {item.links && - item.links.map(link => ( - - ))} - + item.links && + item.links + .map(link => ( + + )) + .reduce((prev, curr, idx) => [prev,
, curr]) } />