diff --git a/packages/standard-components/src/forms/validation.js b/packages/standard-components/src/forms/validation.js index 5b49fa0848..8433705e0a 100644 --- a/packages/standard-components/src/forms/validation.js +++ b/packages/standard-components/src/forms/validation.js @@ -77,6 +77,9 @@ const lengthConstraint = maxLength => value => { } const numericalConstraint = (constraint, error) => value => { + if (value == null || value === "") { + return null + } if (isNaN(value)) { return "Must be a number" }