Skip to content

Commit

Permalink
fix: number variable can not input constant type value in tool config…
Browse files Browse the repository at this point in the history
… form (#11320)
  • Loading branch information
iamjoel authored Dec 4, 2024
1 parent 1cb5a12 commit e240424
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ const InputVarList: FC<Props> = ({
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
onChange={handleNotMixedTypeChange(variable)}
onOpen={handleOpen(index)}
defaultVarKindType={VarKindType.variable}
defaultVarKindType={isNumber ? VarKindType.constant : VarKindType.variable}
isSupportConstantValue={isSupportConstantValue}
filterVar={isNumber ? filterVar : undefined}
availableVars={isSelect ? availableVars : undefined}
schema={schema}
Expand Down

0 comments on commit e240424

Please sign in to comment.