Skip to content

Commit 88c39e8

Browse files
committed
Fix for thumbnail images in items.
Revert changes in html template Revert changes in html template Revert changes in html template
1 parent 474b70b commit 88c39e8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/item-page/media-viewer/media-viewer.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
1+
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
22
import { BehaviorSubject, Observable } from 'rxjs';
33
import { filter, take } from 'rxjs/operators';
44
import { BitstreamDataService } from '../../core/data/bitstream-data.service';
@@ -42,6 +42,7 @@ export class MediaViewerComponent implements OnDestroy, OnInit {
4242

4343
constructor(
4444
protected bitstreamDataService: BitstreamDataService,
45+
protected changeDetectorRef: ChangeDetectorRef
4546
) {
4647
}
4748

@@ -85,6 +86,7 @@ export class MediaViewerComponent implements OnDestroy, OnInit {
8586
}));
8687
}
8788
this.isLoading = false;
89+
this.changeDetectorRef.detectChanges();
8890
}));
8991
}
9092
}));

0 commit comments

Comments
 (0)