From 68e86181841f8655842afa1bfaf966c8cfed6d2a Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Mon, 9 Dec 2024 12:28:33 +0800 Subject: [PATCH] fix: default value --- .../nodes/_base/components/error-handle/default-value.tsx | 3 ++- .../nodes/_base/components/error-handle/fail-branch-card.tsx | 1 + web/i18n/en-US/workflow.ts | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx b/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx index 11045ac7afe58d..45c23fcc183ec6 100644 --- a/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx +++ b/web/app/components/workflow/nodes/_base/components/error-handle/default-value.tsx @@ -21,7 +21,7 @@ const DefaultValue = ({ if (type === VarType.string || type === VarType.number) value = payload.target.value - if (type === VarType.array || type === VarType.arrayNumber || type === VarType.arrayString || type === VarType.arrayObject || type === VarType.arrayFile) + if (type === VarType.array || type === VarType.arrayNumber || type === VarType.arrayString || type === VarType.arrayObject || type === VarType.arrayFile || type === VarType.object) value = payload onFormChange({ key, type, value }) @@ -32,6 +32,7 @@ const DefaultValue = ({
{t('workflow.nodes.common.errorHandle.defaultValue.desc')} +   {
{t('workflow.nodes.common.errorHandle.failBranch.customizeTip')} +