mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 22:38:59 +08:00
fix: fe tool filter missing different languages handling (#5558)
This commit is contained in:
parent
877a2c144b
commit
0c352eef2d
@ -83,7 +83,9 @@ const AddToolModal: FC<Props> = ({
|
||||
return toolWithProvider.labels.includes(currentCategory)
|
||||
}).filter((toolWithProvider) => {
|
||||
return toolWithProvider.tools.some((tool) => {
|
||||
return tool.label[language].toLowerCase().includes(keywords.toLowerCase())
|
||||
return Object.values(tool.label).some((label) => {
|
||||
return label.toLowerCase().includes(keywords.toLowerCase())
|
||||
})
|
||||
})
|
||||
})
|
||||
}, [currentType, currentCategory, toolList, keywords, language])
|
||||
|
Loading…
x
Reference in New Issue
Block a user