Skip to content

Commit fd4afe0

Browse files
Jhvcclowell
and
lowell
authored
fix: tools translate search (#12950)
Co-authored-by: lowell <lowell.hu@zkteco.in>
1 parent dd0904f commit fd4afe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/app/components/tools/provider-list.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const ProviderList = () => {
4646
if (tagFilterValue.length > 0 && (!collection.labels || collection.labels.every(label => !tagFilterValue.includes(label))))
4747
return false
4848
if (keywords)
49-
return collection.name.toLowerCase().includes(keywords.toLowerCase())
49+
return Object.values(collection.label).some(value => value.toLowerCase().includes(keywords.toLowerCase()))
5050
return true
5151
})
5252
}, [activeTab, tagFilterValue, keywords, collectionList])

0 commit comments

Comments
 (0)