Fix avatar error when src is undefined (#652)
This commit is contained in:
parent
067cd1e0e1
commit
9dccd3198f
|
@ -9,7 +9,7 @@ import { Utils } from "jslib-common/misc/utils";
|
|||
@Component({
|
||||
selector: "app-avatar",
|
||||
template:
|
||||
'<img [src]="sanitizer.bypassSecurityTrustResourceUrl(src)" title="{{data}}" ' +
|
||||
'<img *ngIf="src" [src]="sanitizer.bypassSecurityTrustResourceUrl(src)" title="{{data}}" ' +
|
||||
"[ngClass]=\"{'rounded-circle': circle}\">",
|
||||
})
|
||||
export class AvatarComponent implements OnChanges, OnInit {
|
||||
|
|
Loading…
Reference in New Issue