Skip to content

EspoCRM – Open Source CRM Application

html fix

Yuri Kuznetsovaf2c05f03e82
diff --git a/client/src/views/fields/collaborators.js b/client/src/views/fields/collaborators.js
index d080d34bfa..0da127860b 100644
--- a/client/src/views/fields/collaborators.js
+++ b/client/src/views/fields/collaborators.js
@@ -94,7 +94,9 @@ export default class CollaboratorsFieldView extends LinkMultipleFieldView {
if (avatarHtml) {
const img = new DOMParser().parseFromString(avatarHtml, 'text/html').body.childNodes[0];
- itemElement.prepend(img);
+ const textElement = itemElement.querySelector('.text');
+
+ textElement?.prepend(img);
}
return itemElement;