mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 21:19:00 +08:00
fix: tools translate search (#12950)
Co-authored-by: lowell <lowell.hu@zkteco.in>
This commit is contained in:
parent
dd0904f95c
commit
fd4afe09f8
@ -46,7 +46,7 @@ const ProviderList = () => {
|
||||
if (tagFilterValue.length > 0 && (!collection.labels || collection.labels.every(label => !tagFilterValue.includes(label))))
|
||||
return false
|
||||
if (keywords)
|
||||
return collection.name.toLowerCase().includes(keywords.toLowerCase())
|
||||
return Object.values(collection.label).some(value => value.toLowerCase().includes(keywords.toLowerCase()))
|
||||
return true
|
||||
})
|
||||
}, [activeTab, tagFilterValue, keywords, collectionList])
|
||||
|
Loading…
x
Reference in New Issue
Block a user