mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 11:06:46 +08:00
fix
This commit is contained in:
parent
cf4a526e7f
commit
54b935f609
@ -39,7 +39,7 @@ const TagsFilter = ({
|
|||||||
const { t } = useMixedTranslation(locale)
|
const { t } = useMixedTranslation(locale)
|
||||||
const [open, setOpen] = useState(false)
|
const [open, setOpen] = useState(false)
|
||||||
const [searchText, setSearchText] = useState('')
|
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 filteredOptions = options.filter(option => option.label.toLowerCase().includes(searchText.toLowerCase()))
|
||||||
const handleCheck = (id: string) => {
|
const handleCheck = (id: string) => {
|
||||||
if (tags.includes(id))
|
if (tags.includes(id))
|
||||||
@ -47,6 +47,7 @@ const TagsFilter = ({
|
|||||||
else
|
else
|
||||||
onTagsChange([...tags, id])
|
onTagsChange([...tags, id])
|
||||||
}
|
}
|
||||||
|
const selectedTagsLength = tags.length
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PortalToFollowElem
|
<PortalToFollowElem
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user