We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6dbfe4 commit 4b61ba4Copy full SHA for 4b61ba4
src/app/shared/utils/safe-url-pipe.ts
@@ -16,6 +16,6 @@ import { DomSanitizer } from '@angular/platform-browser';
16
export class SafeUrlPipe implements PipeTransform {
17
constructor(private domSanitizer: DomSanitizer) { }
18
transform(url) {
19
- return this.domSanitizer.bypassSecurityTrustResourceUrl(url);
+ return url == null ? null : this.domSanitizer.bypassSecurityTrustResourceUrl(url);
20
}
21
0 commit comments