fix: object value change in tool node

pull/22091/head
jZonG 11 months ago
parent 81ea5f1b77
commit 2b0193dd79

@ -54,7 +54,7 @@ const ReasoningConfigForm: React.FC<Props> = ({
const getVarKindType = (type: FormTypeEnum) => { const getVarKindType = (type: FormTypeEnum) => {
if (type === FormTypeEnum.file || type === FormTypeEnum.files) if (type === FormTypeEnum.file || type === FormTypeEnum.files)
return VarKindType.variable return VarKindType.variable
if (type === FormTypeEnum.select || type === FormTypeEnum.boolean || type === FormTypeEnum.textNumber) if (type === FormTypeEnum.select || type === FormTypeEnum.boolean || type === FormTypeEnum.textNumber || type === FormTypeEnum.array || type === FormTypeEnum.object)
return VarKindType.constant return VarKindType.constant
if (type === FormTypeEnum.textInput || type === FormTypeEnum.secretInput) if (type === FormTypeEnum.textInput || type === FormTypeEnum.secretInput)
return VarKindType.mixed return VarKindType.mixed

@ -114,7 +114,7 @@ const FormInputItem: FC<Props> = ({
const getVarKindType = () => { const getVarKindType = () => {
if (isFile) if (isFile)
return VarKindType.variable return VarKindType.variable
if (isSelect || isBoolean || isNumber) if (isSelect || isBoolean || isNumber || isArray || isObject)
return VarKindType.constant return VarKindType.constant
if (isString) if (isString)
return VarKindType.mixed return VarKindType.mixed

Loading…
Cancel
Save