From f2e19322285c02a7d731fd3c6bb689f6134dd42c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=87=8C?= <68994887+Wuhu-dsm@users.noreply.github.com> Date: Tue, 29 Oct 2024 15:00:54 +0800 Subject: [PATCH] Update input-var-list.tsx Fix problem that the picker can't support show zero --- .../workflow/nodes/tool/components/input-var-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx index e47082f4b7..dad5af9c5a 100644 --- a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx +++ b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx @@ -168,7 +168,7 @@ const InputVarList: FC = ({ readonly={readOnly} isShowNodeName nodeId={nodeId} - value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])} + value={varInput?.type === VarKindType.constant ? (varInput?.value ?? '') : (varInput?.value ?? [])} onChange={handleNotMixedTypeChange(variable)} onOpen={handleOpen(index)} defaultVarKindType={VarKindType.variable}