Skip to content

EspoCRM – Open Source CRM Application

fix email to lead/contact js error

Yuri Kuznetsov0258f5e8b131
diff --git a/client/src/views/email/detail.js b/client/src/views/email/detail.js
index 65d15f403d..83e4869a65 100644
--- a/client/src/views/email/detail.js
+++ b/client/src/views/email/detail.js
@@ -198,7 +198,7 @@ class EmailDetailView extends DetailView {
}
// noinspection JSUnusedGlobalSymbols
- actionCreateLead() {
+ async actionCreateLead() {
const attributes = {};
const emailHelper = new EmailHelper();
@@ -242,7 +242,7 @@ class EmailDetailView extends DetailView {
const helper = new RecordModal();
- const modalView = helper.showCreate(this, {
+ const modalView = await helper.showCreate(this, {
entityType: 'Lead',
attributes: attributes,
afterSave: () => {
@@ -367,7 +367,7 @@ class EmailDetailView extends DetailView {
}
// noinspection JSUnusedGlobalSymbols
- actionCreateContact() {
+ async actionCreateContact() {
const attributes = {};
const emailHelper = new EmailHelper();
@@ -411,7 +411,7 @@ class EmailDetailView extends DetailView {
const helper = new RecordModal();
- const modalView = helper.showCreate(this, {
+ const modalView = await helper.showCreate(this, {
entityType: 'Contact',
attributes: attributes,
afterSave: () => {