mirror of https://github.com/langgenius/dify.git
fix
This commit is contained in:
parent
cf4a526e7f
commit
54b935f609
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue