Skip to content

Commit

Permalink
fix: FormData entries cannot be null
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel committed Sep 6, 2022
1 parent 5e0eb29 commit ae6a648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class Validator {
this._rulesMapping[field].forEach((cbName) => {
const fieldValue = this.form.get(field);

this.runValidator(cbName, field, fieldValue!.toString());
this.runValidator(cbName, field, fieldValue ? fieldValue.toString() : "");
});
}
}
Expand Down

0 comments on commit ae6a648

Please sign in to comment.