diff --git a/api/js/etemplate/Et2Select/Et2SelectAccount.ts b/api/js/etemplate/Et2Select/Et2SelectAccount.ts index b6180f450b..a4c77e7598 100644 --- a/api/js/etemplate/Et2Select/Et2SelectAccount.ts +++ b/api/js/etemplate/Et2Select/Et2SelectAccount.ts @@ -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; } }