Skip to content

Commit

Permalink
fix: Clear raw validation does not clear the error box
Browse files Browse the repository at this point in the history
- Updated the displayErrors string with string for default rather than undefined
- Updated the `package-lock.json` after rebuilding it
  • Loading branch information
heath-freenome committed Oct 31, 2022
1 parent 9b015ac commit c4a8931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/app.jsx
Expand Up @@ -290,7 +290,7 @@ function RawValidatorTest({ validator, schema, formData }) {
const handleClearClick = () => setRawValidation(undefined);
const handleRawClick = () => setRawValidation(validator.rawValidation(schema, formData));

let displayErrors;
let displayErrors = "Validation not run";
if (rawValidation) {
displayErrors =
rawValidation.errors || rawValidation.validationError ?
Expand Down

0 comments on commit c4a8931

Please sign in to comment.