Uncaught (in promise) TypeError: Cannot read properties of null (reading 'prepend')
at s.prepareEditItemElement (espo-crm.js:6114:64)
at s.addLinkHtml (espo-main.js:36633:32)
at s.addLinkHtml (espo-main.js:72772:22)
at espo-main.js:36558:14
at Array.forEach (<anonymous>)
at s.renderLinks (espo-main.js:36557:16)
at s.afterRender (espo-main.js:36529:14)
at s._afterRender (bullbone.js:1382:18)
at s._afterRender (bullbone.js:1378:32)
at r._afterRender (bullbone.js:1378:32)
Hi Yuri,
on demo too.
i don't know how i do this but :
Step To Reproduce
- i have activate kanban for meeting ( i don't think it's that)
- so i played click listview ... click kanban
- so after i have added "users" field as search .. then the error occur
- then i click kanban and reclik listview .. all seemt ok but "Users" search field is no more displayed
- then you can add all search field.. he disappear.
You can see in print-screen.
Seemt this function :
Look a the second print-screen, "Users" field is not there. (not in search field and not in header)
I think this is not related to kanban.
Best Regards
at s.prepareEditItemElement (espo-crm.js:6114:64)
at s.addLinkHtml (espo-main.js:36633:32)
at s.addLinkHtml (espo-main.js:72772:22)
at espo-main.js:36558:14
at Array.forEach (<anonymous>)
at s.renderLinks (espo-main.js:36557:16)
at s.afterRender (espo-main.js:36529:14)
at s._afterRender (bullbone.js:1382:18)
at s._afterRender (bullbone.js:1378:32)
at r._afterRender (bullbone.js:1378:32)
Hi Yuri,
on demo too.
i don't know how i do this but :
Step To Reproduce
- i have activate kanban for meeting ( i don't think it's that)
- so i played click listview ... click kanban
- so after i have added "users" field as search .. then the error occur
- then i click kanban and reclik listview .. all seemt ok but "Users" search field is no more displayed
- then you can add all search field.. he disappear.
You can see in print-screen.
Seemt this function :
HTML Code:
prepareEditItemElement(id, name) { const itemElement = super.prepareEditItemElement(id, name); const avatarHtml = this.getHelper().getAvatarHtml(id, 'small', 18, 'avatar-link'); if (avatarHtml) { const img = new DOMParser().parseFromString(avatarHtml, 'text/html').body.childNodes[0]; itemElement.children[0].querySelector('.link-item-name').prepend(img); <---- Here } return itemElement; }
I think this is not related to kanban.
Best Regards
Comment