From ae6a648d2fcfcb1c1c7cb57cf12b553ccbb6ec13 Mon Sep 17 00:00:00 2001 From: Axel Date: Tue, 6 Sep 2022 10:19:20 +0200 Subject: [PATCH] fix: FormData entries cannot be null --- src/Validator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator.ts b/src/Validator.ts index b6a24da..79e93df 100644 --- a/src/Validator.ts +++ b/src/Validator.ts @@ -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() : ""); }); } }