Skip to content

Commit

Permalink
fix: customizations doc comment example
Browse files Browse the repository at this point in the history
  • Loading branch information
deodorhunter committed Oct 11, 2023
1 parent 3dd669f commit 017aea1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 017aea1

Please sign in to comment.