Fix carousel breaking when no blurhash found #115 #136 [5/-]

This commit is contained in:
Prayag Prajapati committed 2023-08-18 18:29:38 +05:30
1 parent 1252d8f084
commit 8bd719ece9
1 file changed
+5 -3
+5 -3
View File
@@ -56,13 +56,15 @@ const CarouselSlide = ({ item }) => {
}} }}
> >
<div className="hero-carousel-background-container"> <div className="hero-carousel-background-container">
{Object.keys(item.ImageBlurHashes.Backdrop).length != {!!item.ImageBlurHashes.Backdrop &&
0 && ( Object.keys(item.ImageBlurHashes.Backdrop)
.length != 0 && (
<Blurhash <Blurhash
hash={ hash={
item.ImageBlurHashes.Backdrop[ item.ImageBlurHashes.Backdrop[
Object.keys( Object.keys(
item.ImageBlurHashes.Backdrop, item.ImageBlurHashes
.Backdrop,
)[0] )[0]
] ]
} }