From fac39641a753e967787a259a0c4480f8299b1f44 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 17 Apr 2025 16:55:26 +0800 Subject: [PATCH] fix: array type --- .../workflow/nodes/_base/components/variable/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8b00eb6e07..7299bcb34e 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts +++ b/web/app/components/workflow/nodes/_base/components/variable/utils.ts @@ -322,7 +322,7 @@ const formatItem = ( const dataType = output.type outputSchema.push({ variable: outputKey, - type: dataType + type: dataType === 'array' ? `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,