mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
Fix avatar error when src is undefined (#652)
This commit is contained in:
@@ -9,7 +9,7 @@ import { Utils } from "jslib-common/misc/utils";
|
|||||||
@Component({
|
@Component({
|
||||||
selector: "app-avatar",
|
selector: "app-avatar",
|
||||||
template:
|
template:
|
||||||
'<img [src]="sanitizer.bypassSecurityTrustResourceUrl(src)" title="{{data}}" ' +
|
'<img *ngIf="src" [src]="sanitizer.bypassSecurityTrustResourceUrl(src)" title="{{data}}" ' +
|
||||||
"[ngClass]=\"{'rounded-circle': circle}\">",
|
"[ngClass]=\"{'rounded-circle': circle}\">",
|
||||||
})
|
})
|
||||||
export class AvatarComponent implements OnChanges, OnInit {
|
export class AvatarComponent implements OnChanges, OnInit {
|
||||||
|
|||||||
Reference in New Issue
Block a user