From 0258f5e8b131f1ff0f959d0c1dbb8ffeb65a9ea4 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 6 May 2025 10:50:38 +0300 Subject: [PATCH] fix email to lead/contact js error --- client/src/views/email/detail.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: () => {