Skip to content

Commit

Permalink
Refactor: delete unused variable (#4320)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Khomichenko <[email protected]>
  • Loading branch information
BlackBerryID and Dmitry Khomichenko authored Oct 2, 2024
1 parent f487739 commit ce45081
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ export default class Form<
let state: Partial<FormState<T, S, F>> = { formData, schema };
let newFormData = formData;

let _retrievedSchema: S | undefined;
if (omitExtraData === true && liveOmit === true) {
newFormData = this.omitExtraData(formData);
state = {
Expand Down Expand Up @@ -683,9 +682,6 @@ export default class Form<
errors: toErrorList(errorSchema),
};
}
if (_retrievedSchema) {
state.retrievedSchema = _retrievedSchema;
}
this.setState(state as FormState<T, S, F>, () => onChange && onChange({ ...this.state, ...state }, id));
};

Expand Down

0 comments on commit ce45081

Please sign in to comment.