mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
check if tag array has length in TagCloud
This commit is contained in:
parent
22d9bf3cb7
commit
089da5e7b8
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ interface Props {
|
|||
};
|
||||
|
||||
export const TagCloud = (props: Props): JSX.Element | null => {
|
||||
return props.tags
|
||||
return props.tags && props.tags.length
|
||||
? <div className={styles.grow}>
|
||||
{props.tags.map((t: TagData, i: number) =>
|
||||
<Tag key={i} title={t.description}>{t.name}</Tag>)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue