Skip to content

Commit c85d3b1

Browse files
committed
Merge branch 'master' into pr/2262
2 parents 7600c61 + 0155946 commit c85d3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/carousel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Carousel ({ close, mediaArr, src, setOptions }) {
6262
}, [mediaArr, index, src])
6363

6464
useEffect(() => {
65-
if (!setOptions || !mediaArr[index]) return
65+
if (index === -1) return
6666
setOptions({
6767
overflow: <CarouselOverflow {...mediaArr[index][1]} />
6868
})

0 commit comments

Comments
 (0)