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
|
// String length constraint
|
||||||
if (constraints.length?.maximum != null) {
|
if (constraints.length?.maximum) {
|
||||||
const length = constraints.length?.maximum
|
const length = constraints.length.maximum
|
||||||
checks.push(lengthConstraint(length))
|
checks.push(lengthConstraint(length))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue