From 3cda7efaaa732ea586d8d87ffa80c645e61ed432 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Mar 2023 15:23:00 +0100 Subject: Don't send undefined with HTML input --- client/src/app/+videos/+video-edit/shared/video-edit.component.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/app') diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts index 2bc0e6bb4..89687f35e 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts @@ -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 -- cgit v1.2.3