force-app/main/default/lwc/lexSubmitForApproval/lexSubmitForApproval.js
@@ -30,7 +30,6 @@ } connectedCallback() { console.log(this.recordId); init({ recordId: this.recordId }).then(result => { @@ -51,17 +50,14 @@ SubmitForApproval() { var url = ''; selectRecords({ recordId: this.Id mcId: this.Id }).then(result => { console.log(result); if (result.length > 0) { url = "/apex/SubmitForApprovalPage?id=" + result[0].Id; } else { url = "/apex/SubmitForApprovalPage?mcId=" + this.Id; } window.open(url, '', 'height=350, width=600, top=200, left=350,location=no'); }).catch(error => { console.log("error"); }) } }