Skip to content

Commit

Permalink
Updated validation to only allow integers for numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Sep 8, 2022
1 parent 966485b commit c700611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/admin/component/ConfigurationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function ConfigurationForm({ configurations, configuration = {}, loading,
type={p.displayType === 'number' ? 'number' : 'text'}
placeholder="value"
{...register(`properties.${idx}.propertyValue`, {
valueAsNumber: p.displayType === 'number'
setValueAs: v => (p.displayType === 'number' ? parseInt(v) : v),
})} />
</FloatingLabel>
:
Expand Down

0 comments on commit c700611

Please sign in to comment.