diff --git a/src/app/thumbnail/thumbnail.component.ts b/src/app/thumbnail/thumbnail.component.ts index d8dea1dadd..5f8927f3a2 100644 --- a/src/app/thumbnail/thumbnail.component.ts +++ b/src/app/thumbnail/thumbnail.component.ts @@ -175,11 +175,11 @@ export class ThumbnailComponent implements OnChanges { // isLoading$ will be set to false by the error or success handler afterwards, except in the // case where src is null, then we have to set it manually here (because those handlers won't // trigger) - if (this.isLoading$.getValue() === false) { + if (src !== null && this.isLoading$.getValue() === false) { this.isLoading$.next(true); } this.src$.next(src); - if (src === null) { + if (src === null && this.isLoading$.getValue() === true) { this.isLoading$.next(false); } }