Skip to content

Commit

Permalink
Fix lint on random file
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed May 13, 2024
1 parent 04da8fa commit 2a4218f
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/volto/src/helpers/Blocks/Blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,26 +483,26 @@ export function applySchemaDefaults({ data = {}, schema, intl }) {
[currentField]: schema.properties[currentField].default,
}
: intl &&
schema.properties[currentField].schema &&
!(schema.properties[currentField].widget === 'object_list') // TODO: this should be renamed as itemSchema
? {
...accumulator,
[currentField]: {
...applySchemaDefaults({
data: { ...data[currentField], ...accumulator[currentField] },
schema:
typeof schema.properties[currentField].schema === 'function'
? schema.properties[currentField].schema({
data: accumulator[currentField],
formData: accumulator[currentField],
intl,
})
: schema.properties[currentField].schema,
intl,
}),
},
}
: accumulator;
schema.properties[currentField].schema &&
!(schema.properties[currentField].widget === 'object_list') // TODO: this should be renamed as itemSchema
? {
...accumulator,
[currentField]: {
...applySchemaDefaults({
data: { ...data[currentField], ...accumulator[currentField] },
schema:
typeof schema.properties[currentField].schema === 'function'
? schema.properties[currentField].schema({
data: accumulator[currentField],
formData: accumulator[currentField],
intl,
})
: schema.properties[currentField].schema,
intl,
}),
},
}
: accumulator;
}, {}),
data,
);
Expand Down

0 comments on commit 2a4218f

Please sign in to comment.