From 089da5e7b8535b299d18d0440062e41aa74a464a Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 24 Aug 2019 10:02:19 -0500 Subject: [PATCH] check if tag array has length in TagCloud --- src/FilterLists.Web.V2/src/shared/tagCloud/TagCloud.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Web.V2/src/shared/tagCloud/TagCloud.tsx b/src/FilterLists.Web.V2/src/shared/tagCloud/TagCloud.tsx index cf260bae0..80b71d07a 100644 --- a/src/FilterLists.Web.V2/src/shared/tagCloud/TagCloud.tsx +++ b/src/FilterLists.Web.V2/src/shared/tagCloud/TagCloud.tsx @@ -12,7 +12,7 @@ interface Props { }; export const TagCloud = (props: Props): JSX.Element | null => { - return props.tags + return props.tags && props.tags.length ?
{props.tags.map((t: TagData, i: number) => {t.name})}