소스 검색

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)}