Skip to content

Commit 4b61ba4

Browse files
vins01-4scienceatarix83
authored andcommitted
[DURACOM-288] Fixes undefined request in thumbnail
1 parent e6dbfe4 commit 4b61ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/utils/safe-url-pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ import { DomSanitizer } from '@angular/platform-browser';
1616
export class SafeUrlPipe implements PipeTransform {
1717
constructor(private domSanitizer: DomSanitizer) { }
1818
transform(url) {
19-
return this.domSanitizer.bypassSecurityTrustResourceUrl(url);
19+
return url == null ? null : this.domSanitizer.bypassSecurityTrustResourceUrl(url);
2020
}
2121
}

0 commit comments

Comments
 (0)