From ea4511ad7c2fdc22f62657885fb499d71b633636 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 20 Jan 2026 23:29:59 +0000 Subject: [PATCH] Fix search not displaying when no tags exist Previously the TagFilters component returned null when there were no tags, hiding both the search input and tag filtering controls. Now search is always displayed, and only the tag filtering toggle/badges are hidden when no tags exist. Fixes #10 --- .../sidepanel/components/TagFilters.tsx | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) 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 - } + )}