This commit is contained in:
zxhlyh 2025-08-12 10:49:49 +08:00
parent cf4a526e7f
commit 54b935f609
1 changed files with 2 additions and 1 deletions

View File

@ -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 (
<PortalToFollowElem