Skip to content

Commit

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

0 comments on commit 3dd669f

Please sign in to comment.