mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 16:05:55 +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))))
|
if (tagFilterValue.length > 0 && (!collection.labels || collection.labels.every(label => !tagFilterValue.includes(label))))
|
||||||
return false
|
return false
|
||||||
if (keywords)
|
if (keywords)
|
||||||
return collection.name.toLowerCase().includes(keywords.toLowerCase())
|
return Object.values(collection.label).some(value => value.toLowerCase().includes(keywords.toLowerCase()))
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
}, [activeTab, tagFilterValue, keywords, collectionList])
|
}, [activeTab, tagFilterValue, keywords, collectionList])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user