From c47106315ae3c403239cda29c49b4bba51ddccb2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 2 Apr 2019 18:30:26 +0200 Subject: tslint update --- client/src/app/shared/forms/form-reactive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared/forms') diff --git a/client/src/app/shared/forms/form-reactive.ts b/client/src/app/shared/forms/form-reactive.ts index b9873af2c..0d40b6f4a 100644 --- a/client/src/app/shared/forms/form-reactive.ts +++ b/client/src/app/shared/forms/form-reactive.ts @@ -59,7 +59,7 @@ export abstract class FormReactive { const isDirty = control.dirty || forceCheck === true if (control && isDirty && !control.valid) { const messages = validationMessages[ field ] - for (const key in control.errors) { + for (const key of Object.keys(control.errors)) { formErrors[ field ] += messages[ key ] + ' ' } } -- cgit v1.2.3