Skip to content

Commit

Permalink
fix(app-headless-cms): pass default value to nested multiple values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
leopuleo authored Jul 31, 2024
1 parent 5795b78 commit badd76f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function useBind({ Bind, field }: UseBindProps) {
<Bind
name={childName || name}
validators={childValidators || inputValidators}
defaultValue={index === -1 ? defaultValue : null}
defaultValue={!isMultipleValues ? defaultValue : null}
>
{bind => {
// Multiple-values functions below.
Expand Down

0 comments on commit badd76f

Please sign in to comment.