瀏覽代碼

fix: incorrect variable type selection (#13906)

tags/1.0.0
Novice 8 月之前
父節點
當前提交
07d6cb3f4a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      web/app/components/workflow/nodes/_base/components/variable/utils.ts

+ 2
- 2
web/app/components/workflow/nodes/_base/components/variable/utils.ts 查看文件

@@ -249,8 +249,8 @@ const formatItem = (
outputSchema.push({
variable: outputKey,
type: output.type === 'array'
? `Array[${output.items?.type.slice(0, 1).toLocaleUpperCase()}${output.items?.type.slice(1)}]`
: `${output.type.slice(0, 1).toLocaleUpperCase()}${output.type.slice(1)}`,
? `array[${output.items?.type.slice(0, 1).toLocaleLowerCase()}${output.items?.type.slice(1)}]`
: `${output.type.slice(0, 1).toLocaleLowerCase()}${output.type.slice(1)}`,
description: output.description,
})
})

Loading…
取消
儲存