Skip to content

Commit

Permalink
chore(form-core): accept undefined default values again
Browse files Browse the repository at this point in the history
  • Loading branch information
gutentag2012 committed May 24, 2024
1 parent b5e0a99 commit fcc08ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/form-core/src/FormLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@ export class FormLogic<
}
const fieldOptions = field.options.value
const currentDefaultValue = getValueAtPath(defaultValues, field.name)
if (
currentDefaultValue !== undefined ||
fieldOptions?.defaultValue === undefined
)
continue
if (currentDefaultValue !== undefined) continue
setValueAtPath(
combinedDefaultValues,
field.name,
Expand Down

0 comments on commit fcc08ab

Please sign in to comment.