From 017aea158ad3d039bcfd1d526e72cfa72739a33c Mon Sep 17 00:00:00 2001 From: Martina Bustacchini Date: Wed, 11 Oct 2023 10:19:39 +0200 Subject: [PATCH] fix: customizations doc comment example --- .../volto/helpers/FormValidation/FormValidation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/customizations/volto/helpers/FormValidation/FormValidation.js b/src/customizations/volto/helpers/FormValidation/FormValidation.js index 0263542b8..8e0e6862c 100644 --- a/src/customizations/volto/helpers/FormValidation/FormValidation.js +++ b/src/customizations/volto/helpers/FormValidation/FormValidation.js @@ -10,7 +10,7 @@ * 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,