EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix event model callback wrapper no object
Yurii0f0e0b9f82b9
diff --git a/client/src/util/event.js b/client/src/util/event.jsindex fa92b6bbff..99624fcc5a 100644--- a/client/src/util/event.js+++ b/client/src/util/event.js@@ -62,9 +62,9 @@ export function onModelChange(params) {*/function callCallback(o) {callback({- ui: o.ui ?? null,- action: o.action ?? null,- fromView: o.fromView ?? null,+ ui: o?.ui ?? null,+ action: o?.action ?? null,+ fromView: o?.fromView ?? null,});}@@ -118,7 +118,7 @@ export function onSync(params) {*/function wrappedCallback(o, response) {callback({- action: o.action ?? null,+ action: o?.action ?? null,response: response,});}