Fix max string length validation
This commit is contained in:
parent
a4de9668ed
commit
28fb04b31e
|
@ -13,8 +13,8 @@ export const createValidatorFromConstraints = (constraints, field, table) => {
|
|||
}
|
||||
|
||||
// String length constraint
|
||||
if (constraints.length?.maximum != null) {
|
||||
const length = constraints.length?.maximum
|
||||
if (constraints.length?.maximum) {
|
||||
const length = constraints.length.maximum
|
||||
checks.push(lengthConstraint(length))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue