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 a7bcddf commit c222c44Copy full SHA for c222c44
src/app/thumbnail/thumbnail.component.ts
@@ -198,11 +198,11 @@ export class ThumbnailComponent implements OnChanges {
198
// isLoading$ will be set to false by the error or success handler afterwards, except in the
199
// case where src is null, then we have to set it manually here (because those handlers won't
200
// trigger)
201
- if (this.isLoading$.getValue() === false) {
+ if (src !== null && this.isLoading$.getValue() === false) {
202
this.isLoading$.next(true);
203
}
204
this.src$.next(src);
205
- if (src === null) {
+ if (src === null && this.isLoading$.getValue() === true) {
206
this.isLoading$.next(false);
207
208
0 commit comments