mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-26 10:14:25 +08:00
fix: plugin tool icon (#13918)
This commit is contained in:
parent
cb841e5cde
commit
ed7851a4b3
@ -608,7 +608,11 @@ export const useToolIcon = (data: Node['data']) => {
|
|||||||
targetTools = customTools
|
targetTools = customTools
|
||||||
else
|
else
|
||||||
targetTools = workflowTools
|
targetTools = workflowTools
|
||||||
return targetTools.find(toolWithProvider => toolWithProvider.id === data.provider_id)?.icon
|
return targetTools.find((toolWithProvider) => {
|
||||||
|
return toolWithProvider.id === data.provider_id
|
||||||
|
|| toolWithProvider.id === `langgenius/${data.provider_id}/${data.provider_id}`
|
||||||
|
|| toolWithProvider.id === `langgenius/${data.provider_id}_tool/${data.provider_id}`
|
||||||
|
})?.icon
|
||||||
}
|
}
|
||||||
}, [data, buildInTools, customTools, workflowTools])
|
}, [data, buildInTools, customTools, workflowTools])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user