mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: custom tools not show
This commit is contained in:
parent
a9de7f24a2
commit
b754bf80ae
|
@ -57,6 +57,9 @@ const AllTools = ({
|
||||||
if (activeTab === ToolTypeEnum.Workflow)
|
if (activeTab === ToolTypeEnum.Workflow)
|
||||||
mergedTools = workflowTools
|
mergedTools = workflowTools
|
||||||
|
|
||||||
|
if (!searchText)
|
||||||
|
return mergedTools.filter(toolWithProvider => toolWithProvider.tools.length > 0)
|
||||||
|
|
||||||
return mergedTools.filter((toolWithProvider) => {
|
return mergedTools.filter((toolWithProvider) => {
|
||||||
return toolWithProvider.tools.some((tool) => {
|
return toolWithProvider.tools.some((tool) => {
|
||||||
return tool.label[language].toLowerCase().includes(searchText.toLowerCase())
|
return tool.label[language].toLowerCase().includes(searchText.toLowerCase())
|
||||||
|
@ -64,6 +67,7 @@ const AllTools = ({
|
||||||
})
|
})
|
||||||
}, [activeTab, buildInTools, customTools, workflowTools, searchText, language])
|
}, [activeTab, buildInTools, customTools, workflowTools, searchText, language])
|
||||||
|
|
||||||
|
console.log(activeTab, customTools, tools)
|
||||||
const {
|
const {
|
||||||
queryPluginsWithDebounced: fetchPlugins,
|
queryPluginsWithDebounced: fetchPlugins,
|
||||||
plugins: notInstalledPlugins = [],
|
plugins: notInstalledPlugins = [],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user