Skip to content

Commit

Permalink
oops real FIX #24
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Nov 16, 2021
1 parent dfeb5ee commit eb462b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const Form = ({ schema, flow, value, inputWrapper, onSubmit, footer, styl

if (Array.isArray(v)) {
return { ...acc, [key]: v.map(({value}) => value ) }
} else if (typeof v === 'object') {
} else if (!!v && typeof v === 'object') {
return { ...acc, [key]: cleanOutputArray(v) }
} else {
return { ...acc, [key]: v }
Expand Down

0 comments on commit eb462b7

Please sign in to comment.