]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/form-validators/video-validators.ts
Fix lint
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / form-validators / video-validators.ts
index f96189aa248fead9d58b4dde6391f3f9c37cd803..a4bda8f16471f224902b1c8cef19e9bd48ea203c 100644 (file)
@@ -86,7 +86,7 @@ export const VIDEO_SUPPORT_VALIDATOR: BuildFormValidator = {
 }
 
 export const VIDEO_SCHEDULE_PUBLICATION_AT_VALIDATOR: BuildFormValidator = {
-  VALIDATORS: [ ],
+  VALIDATORS: [ ], // Required is set dynamically
   MESSAGES: {
     required: $localize`A date is required to schedule video update.`
   }
@@ -99,7 +99,7 @@ export const VIDEO_ORIGINALLY_PUBLISHED_AT_VALIDATOR: BuildFormValidator = {
 
 function arrayTagLengthValidator (min = 2, max = 30): ValidatorFn {
   return (control: AbstractControl): ValidationErrors => {
-    const array = control.value as Array<string>
+    const array = control.value as string[]
 
     if (array.every(e => e.length >= min && e.length <= max)) {
       return null