force-app/main/default/lwc/lexAppCancelSubmit/lexAppCancelSubmit.js
@@ -72,14 +72,21 @@ } showToast(msg,type) { if(type == 'success'){ const event = new ShowToastEvent({ message: msg, variant: type variant: type, }); if(type == 'success'){ this.updateRecordView(); } this.dispatchEvent(event); this.dispatchEvent(new CloseActionScreenEvent()); }else{ const event = new ShowToastEvent({ message: msg, variant: type, mode: 'sticky' }); this.dispatchEvent(event); this.dispatchEvent(new CloseActionScreenEvent()); } } }