Skip to content

Commit f8f2b56

Browse files
authored
Merge pull request #11389 from SAYAN02-DEV/fix-loading-indicator
Fix: Hide loading indicator if carousel loading fails.
2 parents 8946d23 + 23e3b4d commit f8f2b56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openlibrary/plugins/openlibrary/js/lazy-carousel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function doFetchAndUpdate(target) {
8282
}
8383
})
8484
.catch(() => {
85+
loadingIndicator.classList.add('hidden');
8586
const retryElem = target.querySelector('.lazy-carousel-retry')
8687
retryElem.classList.remove('hidden')
8788
})

0 commit comments

Comments
 (0)