From b22cd746b3c3b1d142dc9e90100479d132394b4e Mon Sep 17 00:00:00 2001 From: Jeremy Asuncion Date: Thu, 26 Oct 2023 12:15:58 -0700 Subject: [PATCH] Filter out empty support links (#1291) --- .../src/components/PluginPage/SupportInfo.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/PluginPage/SupportInfo.tsx b/frontend/src/components/PluginPage/SupportInfo.tsx index d771a6a5d..2bd7c076a 100644 --- a/frontend/src/components/PluginPage/SupportInfo.tsx +++ b/frontend/src/components/PluginPage/SupportInfo.tsx @@ -239,15 +239,17 @@ function Links({ ariaLabel, children, links }: LinksProps) { onClose={closeTooltip} title={
- {links.map((link) => ( - - {link.label} - - ))} + {links + .filter((link) => link.value) + .map((link) => ( + + {link.label} + + ))}
} >