Fix max string length validation
This commit is contained in:
parent
deccd11def
commit
8be1d1e530
|
@ -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