parent
cb05cc7f7f
commit
92c64e74f4
1 changed files with 1 additions and 3 deletions
|
@ -170,9 +170,7 @@ export default function NewAttributeSettings() {
|
|||
const validations = profileConfig.validations.reduce(
|
||||
(prevValidations, currentValidations) => {
|
||||
prevValidations[currentValidations.key] =
|
||||
currentValidations.value?.length === 0
|
||||
? {}
|
||||
: currentValidations.value;
|
||||
currentValidations.value || {};
|
||||
return prevValidations;
|
||||
},
|
||||
{} as Record<string, unknown>,
|
||||
|
|
Loading…
Reference in a new issue