diff --git a/src/fields/config/sanitize.ts b/src/fields/config/sanitize.ts index 5a4dbf23550..47a4300e9dc 100644 --- a/src/fields/config/sanitize.ts +++ b/src/fields/config/sanitize.ts @@ -43,7 +43,7 @@ const sanitizeFields = (fields, validRelationships: string[]) => { if (typeof field.validate === 'undefined') { const defaultValidate = validations[field.type]; if (defaultValidate) { - field.validate = defaultValidate; + field.validate = (val, options) => defaultValidate(val, { ...field, ...options }); } else { field.validate = () => true; }