Et2SelectAccount: Avoid error if option does not have an image

This commit is contained in:
nathan 2022-11-21 09:16:38 -07:00
parent 1d540aa74c
commit 6d41c9c30b

View File

@ -115,7 +115,10 @@ export class Et2SelectAccount extends Et2Select
protected _createImage(item) : Et2Image
{
const image = super._createImage(item);
image.src = "/egroupware/api/avatar.php?account_id=" + item.value + "&etag=1";
if(image)
{
image.src = "/egroupware/api/avatar.php?account_id=" + item.value + "&etag=1";
}
return image;
}
}