]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-reactive.ts
Add ability to set a public to private in client
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-reactive.ts
index b9873af2c44aef9cde215933d265ec48ec7631b2..0d40b6f4ae8715eaa172235f14e8e87dca6bbd63 100644 (file)
@@ -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 ] + ' '
         }
       }