瀏覽代碼

fix: incorrect variable type selection (#13906)

Novice 1 月之前
父節點
當前提交
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,
           })
         })