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