mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 04:20:05 +02:00
fix lavatar shows same letters for every contact not having a photo
caused by wrongly falling back to the contact with contact_id equal to account_id of current user also fix TypeError if remote search does not return an array
This commit is contained in:
@@ -1257,9 +1257,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
||||
*/
|
||||
protected processRemoteResults(entries, totalResults = 0)
|
||||
{
|
||||
let resultCount = entries.length;
|
||||
|
||||
if(entries.length == 0)
|
||||
if(!entries?.length)
|
||||
{
|
||||
return Promise.resolve();
|
||||
}
|
||||
@@ -1288,6 +1286,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
||||
*/
|
||||
|
||||
let temp_target = document.createElement("div");
|
||||
let resultCount = entries.length;
|
||||
|
||||
render(options, temp_target);
|
||||
return Promise.all(([...temp_target.querySelectorAll(":scope > *")].map(item => item.render)))
|
||||
|
Reference in New Issue
Block a user