1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-06 16:16:37 -04:00
parent 8ecd19701f
commit d29ec648bd

View File

@ -191,6 +191,8 @@ export class Input extends React.Component<InputProps, State> {
return this.getValidatorError(value, validator) || (error instanceof Error ? error.message : String(error));
}
})());
} else if (!validator.validate(value, this.props)) {
errors.push(this.getValidatorError(value, validator));
}
}