ソースを参照

Update input-var-list.tsx (#9987)

左凌 7 ヶ月 前
コミット
7a00798027
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      web/app/components/workflow/nodes/tool/components/input-var-list.tsx

+ 1 - 1
web/app/components/workflow/nodes/tool/components/input-var-list.tsx

@@ -162,7 +162,7 @@ const InputVarList: FC<Props> = ({
                   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={varInput?.type || (isNumber ? VarKindType.constant : VarKindType.variable)}