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 e40a44c commit 70d1e49Copy full SHA for 70d1e49
src/app/thumbnail/thumbnail.component.ts
@@ -175,11 +175,11 @@ export class ThumbnailComponent implements OnChanges {
175
// isLoading$ will be set to false by the error or success handler afterwards, except in the
176
// case where src is null, then we have to set it manually here (because those handlers won't
177
// trigger)
178
- if (this.isLoading$.getValue() === false) {
+ if (src !== null && this.isLoading$.getValue() === false) {
179
this.isLoading$.next(true);
180
}
181
this.src$.next(src);
182
- if (src === null) {
+ if (src === null && this.isLoading$.getValue() === true) {
183
this.isLoading$.next(false);
184
185
0 commit comments