value can be undefined see "local-date" (#2652)
This commit is contained in:
parent
2e45c89edf
commit
80a398d2ac
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ export default function NewAttributeSettings() {
|
||||||
const validations = profileConfig.validations?.reduce(
|
const validations = profileConfig.validations?.reduce(
|
||||||
(prevValidations: any, currentValidations: any) => {
|
(prevValidations: any, currentValidations: any) => {
|
||||||
prevValidations[currentValidations.key] =
|
prevValidations[currentValidations.key] =
|
||||||
currentValidations.value.length === 0 ? {} : currentValidations.value;
|
currentValidations.value?.length === 0
|
||||||
|
? {}
|
||||||
|
: currentValidations.value;
|
||||||
return prevValidations;
|
return prevValidations;
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in a new issue