We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7c0da commit c8aae06Copy full SHA for c8aae06
1 file changed
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