Conform more code to strictNullChecks (#10444
* Conform more code to `strictNullChecks` * Fix tests * Fix tests
This commit is contained in:
committed by
GitHub
parent
ba2608ec74
commit
c225b8ec29
@@ -100,7 +100,7 @@ export default class TextInputDialog extends React.Component<IProps, IState> {
|
||||
};
|
||||
|
||||
private onValidate = async (fieldState: IFieldState): Promise<IValidationResult> => {
|
||||
const result = await this.props.validator(fieldState);
|
||||
const result = await this.props.validator!(fieldState);
|
||||
this.setState({
|
||||
valid: !!result.valid,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user