mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
fix(tool): standardize tool naming across components
- Updated references from `trigger_name` to `tool_name` in multiple components for consistency. - Adjusted type definitions to reflect the change in naming convention, enhancing clarity in the codebase.
This commit is contained in:
@ -44,7 +44,7 @@ const ImportFromTool: FC<Props> = ({
|
||||
const workflowTools = useStore(s => s.workflowTools)
|
||||
|
||||
const handleSelectTool = useCallback((_type: BlockEnum, toolInfo?: ToolDefaultValue) => {
|
||||
const { provider_id, provider_type, trigger_name: tool_name } = toolInfo!
|
||||
const { provider_id, provider_type, tool_name: tool_name } = toolInfo!
|
||||
const currentTools = (() => {
|
||||
switch (provider_type) {
|
||||
case CollectionType.builtIn:
|
||||
|
||||
Reference in New Issue
Block a user