Skip to content

Commit

Permalink
fix: values from number fields must be integers for the mapping engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Oct 20, 2023
1 parent 9a754c3 commit 39767f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/edit/shared/FeatureStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const FeatureStyle = ({ style, onChange }) => {
key={id}
label={label}
value={style[id]}
onChange={(value) => onChange({ [id]: value })}
onChange={(value) =>
onChange({ [id]: parseInt(value) })
}
className={styles.narrowField}
/>
)
Expand Down

0 comments on commit 39767f1

Please sign in to comment.