Skip to content

Commit f5ce630

Browse files
committed
Merge branch 'fix-embargoed-thumbnails_contribute-8.1' into fix-embargoed-thumbnails_contribute-9.0
2 parents a843659 + c222c44 commit f5ce630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/thumbnail/thumbnail.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ export class ThumbnailComponent implements OnChanges {
196196
// isLoading$ will be set to false by the error or success handler afterwards, except in the
197197
// case where src is null, then we have to set it manually here (because those handlers won't
198198
// trigger)
199-
if (this.isLoading() === false) {
199+
if (src !== null && this.isLoading() === false) {
200200
this.isLoading.set(true);
201201
}
202202
this.src.set(src);
203-
if (src === null) {
203+
if (src === null && this.isLoading() === true) {
204204
this.isLoading.set(false);
205205
}
206206
}

0 commit comments

Comments
 (0)