fix: number variable can not input constant type value in tool config form (#11320)
This commit is contained in:
parent
1cb5a12abb
commit
e240424be5
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ const InputVarList: FC<Props> = ({
|
||||||
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
||||||
onChange={handleNotMixedTypeChange(variable)}
|
onChange={handleNotMixedTypeChange(variable)}
|
||||||
onOpen={handleOpen(index)}
|
onOpen={handleOpen(index)}
|
||||||
defaultVarKindType={VarKindType.variable}
|
defaultVarKindType={isNumber ? VarKindType.constant : VarKindType.variable}
|
||||||
|
isSupportConstantValue={isSupportConstantValue}
|
||||||
filterVar={isNumber ? filterVar : undefined}
|
filterVar={isNumber ? filterVar : undefined}
|
||||||
availableVars={isSelect ? availableVars : undefined}
|
availableVars={isSelect ? availableVars : undefined}
|
||||||
schema={schema}
|
schema={schema}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue