diff --git a/src/helpers/FormValidation/DataGridFormValidationHelpers.js b/src/helpers/FormValidation/DataGridFormValidationHelpers.js index 9bcda37a5..74055d071 100644 --- a/src/helpers/FormValidation/DataGridFormValidationHelpers.js +++ b/src/helpers/FormValidation/DataGridFormValidationHelpers.js @@ -11,7 +11,7 @@ const dgfieldValidationMessages = defineMessages({ export const CUSTOM_DGFIELD_VALIDATION = { timeline_tempi_scadenze: { isValid: (value, itemObj, intlFunc) => { - const isValid = value.filter((val, i) => val.title).length; + const isValid = value.every((val, i) => val.title); return !isValid ? intlFunc( dgfieldValidationMessages.timeline_tempi_scadenze_validation_error,