Skip to content

Commit

Permalink
Filter out empty support links (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 authored Oct 26, 2023
1 parent f5c4c45 commit b22cd74
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions frontend/src/components/PluginPage/SupportInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,17 @@ function Links({ ariaLabel, children, links }: LinksProps) {
onClose={closeTooltip}
title={
<div className="flex flex-col">
{links.map((link) => (
<Link
className="py-sds-s px-sds-l hover:bg-hub-gray-100"
href={link.value}
key={link.value}
>
{link.label}
</Link>
))}
{links
.filter((link) => link.value)
.map((link) => (
<Link
className="py-sds-s px-sds-l hover:bg-hub-gray-100"
href={link.value}
key={link.value}
>
{link.label}
</Link>
))}
</div>
}
>
Expand Down

0 comments on commit b22cd74

Please sign in to comment.