diff --git a/entrypoints/sidepanel/components/TagFilters.tsx b/entrypoints/sidepanel/components/TagFilters.tsx index 23933af..d3055e9 100644 --- a/entrypoints/sidepanel/components/TagFilters.tsx +++ b/entrypoints/sidepanel/components/TagFilters.tsx @@ -76,29 +76,31 @@ export default function TagFilters({ tags, filtersEnabled, searchQuery, fetcher }; }, []); - if (tags.length === 0) return null; + const hasTags = tags.length > 0; return ( - + {hasTags && ( + + )} - {filtersEnabled ? + {filtersEnabled && hasTags && ( {tags.map(tag => {tag.tagName} )} - : null - } + )}