EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix meeting users avatar
Yuri Kuznetsov54be896942dc
diff --git a/client/modules/crm/src/views/meeting/fields/users.js b/client/modules/crm/src/views/meeting/fields/users.jsindex c8b3777d06..48ef672bb4 100644--- a/client/modules/crm/src/views/meeting/fields/users.js+++ b/client/modules/crm/src/views/meeting/fields/users.js@@ -68,7 +68,11 @@ export default class extends AttendeesFieldView {if (avatarHtml) {const img = new DOMParser().parseFromString(avatarHtml, 'text/html').body.childNodes[0];- itemElement.children[0].querySelector('.link-item-name').prepend(img);+ const nameElement = itemElement.children[0].querySelector('.link-item-name');++ if (nameElement) {+ nameElement.prepend(img);+ }}return itemElement;