Skip to content

Commit

Permalink
[canvas] Fix numeric variable casting (#109744) (#109762)
Browse files Browse the repository at this point in the history
Co-authored-by: Clint Andrew Hall <[email protected]>
  • Loading branch information
kibanamachine and clintandrewhall authored Aug 24, 2021
1 parent a30bd65 commit 10ccb2f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ export const VarValueField: FC<Props> = ({ type, value, onChange }) => {
compressed
name="value"
value={value as number}
onChange={(e) => onChange(e.target.value)}
onChange={(e) => onChange(parseFloat(e.target.value))}
/>
);
} else if (type === 'boolean') {
}

if (type === 'boolean') {
return (
<EuiButtonGroup
name="value"
Expand Down

0 comments on commit 10ccb2f

Please sign in to comment.