Skip to content

Commit

Permalink
FIX #24
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Nov 16, 2021
1 parent 5bee92f commit 72b9935
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 @@ -119,7 +119,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]: cleanInputArray(v)}
} else {
return {...acc, [key]: v}
Expand Down

0 comments on commit 72b9935

Please sign in to comment.