mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Et2SelectAccount: Avoid error if option does not have an image
This commit is contained in:
parent
1d540aa74c
commit
6d41c9c30b
@ -115,7 +115,10 @@ export class Et2SelectAccount extends Et2Select
|
||||
protected _createImage(item) : Et2Image
|
||||
{
|
||||
const image = super._createImage(item);
|
||||
if(image)
|
||||
{
|
||||
image.src = "/egroupware/api/avatar.php?account_id=" + item.value + "&etag=1";
|
||||
}
|
||||
return image;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user