Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Dec 16, 2024
1 parent c11e066 commit 5fb7eea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions front/src/components/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function ArrayFieldTemplate(properties) {
className={clsx(
element.className,
'can-add-remove',
element?.uiSchema?.['ui:className'],
element?.uiSchema?.['ui:className']
)}
>
{element.children}
Expand Down Expand Up @@ -218,19 +218,19 @@ function ObjectFieldTemplate(properties) {
const elements = fields
.filter(
(field) =>
(properties.uiSchema[field] || {})['ui:widget'] !== 'hidden',
(properties.uiSchema[field] || {})['ui:widget'] !== 'hidden'
)
.map((field) => {
const element = properties.properties.find(
(element) => element.name === field,
(element) => element.name === field
)

if (!element) {
console.error(
'Field configuration not found for "%s" in \'ui:groups\' "%s" — part of %o',
field,
title || '',
fields,
fields
)
}

Expand Down Expand Up @@ -313,7 +313,7 @@ export default function SchemaForm({
})
},
}),
[onChange, setFormData],
[onChange, setFormData]
)

const customWidgets = {
Expand All @@ -334,7 +334,7 @@ export default function SchemaForm({
setFormData(formData)
onChange(formData)
},
[setFormData, onChange],
[setFormData, onChange]
)

// noinspection JSValidateTypes
Expand Down

0 comments on commit 5fb7eea

Please sign in to comment.