From 54b935f6093ead975b5a6972ef6bde0bdbca8652 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 12 Aug 2025 10:49:49 +0800 Subject: [PATCH] fix --- .../components/plugins/marketplace/search-box/tags-filter.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/marketplace/search-box/tags-filter.tsx b/web/app/components/plugins/marketplace/search-box/tags-filter.tsx index bc9137f4d7..fdb5ce56c0 100644 --- a/web/app/components/plugins/marketplace/search-box/tags-filter.tsx +++ b/web/app/components/plugins/marketplace/search-box/tags-filter.tsx @@ -39,7 +39,7 @@ const TagsFilter = ({ const { t } = useMixedTranslation(locale) const [open, setOpen] = useState(false) const [searchText, setSearchText] = useState('') - const { tags: options } = useTags(t) + const { tags: options, tagsMap } = useTags(t) const filteredOptions = options.filter(option => option.label.toLowerCase().includes(searchText.toLowerCase())) const handleCheck = (id: string) => { if (tags.includes(id)) @@ -47,6 +47,7 @@ const TagsFilter = ({ else onTagsChange([...tags, id]) } + const selectedTagsLength = tags.length return (