Don't send undefined with HTML input

pull/5703/head
Chocobozzz 2023-03-10 15:23:00 +01:00
parent 96d00a997b
commit 04852e14b4
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 0 deletions

View 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