Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn committed Nov 5, 2023
1 parent 232740c commit 75a73cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/form-core/src/FormApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,14 +547,12 @@ export class FormApi<TFormData, ValidatorType> {
}

deleteField = <TField extends DeepKeys<TFormData>>(field: TField) => {

this.store.setState((prev) => {
const newState = { ...prev }
delete newState.values[field as keyof TFormData]
delete newState.fieldMeta[field]
return newState
})

}

pushFieldValue = <TField extends DeepKeys<TFormData>>(
Expand Down

0 comments on commit 75a73cf

Please sign in to comment.