fix: tool var type error (#9937)

pull/9940/head
Joel 1 year ago committed by GitHub
parent aafa4a3c8b
commit 705946cc40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,7 +72,7 @@ const InputVarList: FC<Props> = ({
}
else {
draft[variable] = {
type: varKindType,
type: VarKindType.variable,
value: varValue,
}
}
@ -171,7 +171,7 @@ const InputVarList: FC<Props> = ({
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
onChange={handleNotMixedTypeChange(variable)}
onOpen={handleOpen(index)}
defaultVarKindType={varInput?.type}
defaultVarKindType={VarKindType.variable}
filterVar={isNumber ? filterVar : undefined}
availableVars={isSelect ? availableVars : undefined}
schema={schema}

Loading…
Cancel
Save