fix email to lead/contact js error

This commit is contained in:
Yuri Kuznetsov
2025-05-06 10:50:38 +03:00
parent 5e2ba0d28e
commit 0258f5e8b1
+4 -4
View File
@@ -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: () => {