diff --git a/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts index 47dcc43..ea1cced 100644 --- a/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts +++ b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts @@ -161,6 +161,11 @@ export class ArgModifierDialogComponent implements OnInit, AfterViewInit { add(event) { const input = event.input; const arg = event.value; + + if (!arg || arg.trim().length === 0) { + return; + } + this.args_array.push(arg); if (this.modified_args.length > 0) { this.modified_args += ',,' diff --git a/src/app/download-item/download-item.component.html b/src/app/download-item/download-item.component.html index 9c0b9c9..f23e3df 100644 --- a/src/app/download-item/download-item.component.html +++ b/src/app/download-item/download-item.component.html @@ -24,7 +24,7 @@