From 07d6cb3f4a50678f3f878d4d0f72fd4d7bc0e131 Mon Sep 17 00:00:00 2001 From: Novice <857526207@qq.com> Date: Tue, 25 Feb 2025 13:06:58 +0800 Subject: [PATCH] fix: incorrect variable type selection (#13906) --- .../workflow/nodes/_base/components/variable/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/variable/utils.ts b/web/app/components/workflow/nodes/_base/components/variable/utils.ts index 2e4ea8a355..2e2fc4cb22 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts +++ b/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, }) })