Skip to content

Commit

Permalink
fix: timeline_tempi_scadenze validation (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
deodorhunter authored Oct 19, 2023
1 parent 80bdcd1 commit c97e325
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
- ...
-->

## Versione x.x.x (xx/xx/xx)

## Fix

- Sistemata validazione del campo Timeline tempi e scadenze

## Versione 8.7.9 (18/10/2023)

### Migliorie
Expand Down
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.every((val, i) => val.title);
const isValid = value.every((val, i) => val.milestone);
return !isValid
? intlFunc(
dgfieldValidationMessages.timeline_tempi_scadenze_validation_error,
Expand Down

0 comments on commit c97e325

Please sign in to comment.