Skip to content

Commit

Permalink
Remove the deprecated valid field
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-nero committed Nov 28, 2024
1 parent f798c07 commit c36c37f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web/packages/shared/components/Validation/Validation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ export default class Validator extends Store<ValidatorState> {
validating: false,
};

/**
* @deprecated For temporary Enterprise compatibility only. Use {@link state}
* instead.
*/
valid = true;

/** Callbacks that will be executed upon validation. */
private ruleCallbacks: RuleCallback[] = [];

Expand All @@ -80,17 +74,14 @@ export default class Validator extends Store<ValidatorState> {
logger.error(`rule should return a valid object`);
}

const valid = this.state.valid && Boolean(isValid);
this.setState({ valid });
this.valid = valid;
this.setState({ valid: this.state.valid && Boolean(isValid) });
}

reset() {
this.setState({
valid: true,
validating: false,
});
this.valid = true;
}

validate() {
Expand Down

0 comments on commit c36c37f

Please sign in to comment.