]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't send undefined with HTML input
authorChocobozzz <me@florianbigard.com>
Fri, 10 Mar 2023 14:23:00 +0000 (15:23 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 10 Mar 2023 14:45:52 +0000 (15:45 +0100)
client/src/app/+videos/+video-edit/shared/video-edit.component.ts

index 2bc0e6bb415ecc49603a6b06679764a17be48d76..89687f35eec11c3c8661c9312ffcb74f417cc3c3 100644 (file)
@@ -355,6 +355,9 @@ export class VideoEditComponent implements OnInit, OnDestroy {
     for (const setting of this.pluginFields) {
       await this.pluginService.translateSetting(setting.pluginInfo.plugin.npmName, setting.commonOptions)
 
+      // Not a form input, just a HTML tag
+      if (setting.commonOptions.type === 'html') continue
+
       const validator = async (control: AbstractControl) => {
         if (!setting.commonOptions.error) return null