force-app/main/default/lwc/lexNewOpportunityAgency/lexNewOpportunityAgency.js
@@ -264,13 +264,22 @@ this.IsLoading = false; } showToast(msg,type) { if(type == 'success'){ const event = new ShowToastEvent({ title: ' ', message: msg, variant: type, }); 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()); } } updateRecordView(recordId) { updateRecord({fields: { Id: recordId }});