101577: Fixed default thumbnail not working when thumbnail isn't defined

This commit is contained in:
Alexandre Vryghem
2023-05-19 14:01:35 +02:00
parent 82a8da6028
commit 92f58f0e8a

View File

@@ -53,6 +53,7 @@ export class ThumbnailComponent implements OnChanges {
*/ */
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (this.thumbnail === undefined || this.thumbnail === null) { if (this.thumbnail === undefined || this.thumbnail === null) {
this.src = this.defaultImage;
return; return;
} }
if (this.thumbnail instanceof Bitstream) { if (this.thumbnail instanceof Bitstream) {