Просмотр исходного кода

fix: tool's file input display string (#10887)

非法操作 1 год назад
Родитель
Сommit
f3af7b5f35
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      web/app/components/workflow/nodes/tool/components/input-var-list.tsx

+ 2 - 0
web/app/components/workflow/nodes/tool/components/input-var-list.tsx

@@ -46,6 +46,8 @@ const InputVarList: FC<Props> = ({
   const paramType = (type: string) => {
   const paramType = (type: string) => {
     if (type === FormTypeEnum.textNumber)
     if (type === FormTypeEnum.textNumber)
       return 'Number'
       return 'Number'
+    else if (type === FormTypeEnum.file)
+      return 'File'
     else if (type === FormTypeEnum.files)
     else if (type === FormTypeEnum.files)
       return 'Files'
       return 'Files'
     else if (type === FormTypeEnum.select)
     else if (type === FormTypeEnum.select)