diff --git a/src/Webform.js b/src/Webform.js index df10c726d9..2c2844e622 100644 --- a/src/Webform.js +++ b/src/Webform.js @@ -1147,7 +1147,7 @@ export default class Webform extends NestedDataComponent { errors = [errors]; } - errors = errors.concat(this.customErrors); + errors = errors.concat(this.customErrors).filter((err) => !!err); if (!errors.length) { this.setAlert(false);