Skip to content

Commit

Permalink
fix: tool var type error (#9937)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Oct 28, 2024
1 parent aafa4a3 commit 705946c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const InputVarList: FC<Props> = ({
}
else {
draft[variable] = {
type: varKindType,
type: VarKindType.variable,
value: varValue,
}
}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 705946c

Please sign in to comment.