Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.modal.delete("base command").then(() => {
// reset the expression's validity
this.baseCommand[i].clearIssue(ErrorCode.EXPR_ALL);
(this.form.get("list") as FormArray).removeAt(i);
}, err => {
console.warn(err);