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:
Harry
2025-09-10 20:33:39 +08:00
parent ec33b9908e
commit e9e843b27d
7 changed files with 7 additions and 12 deletions

View File

@ -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: