Fix error if data id udnefined
This commit is contained in:
parent
35c4f85085
commit
a24816ad6d
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ const Carousel = ({ data, cardRows }: any) => {
|
||||||
mode="popLayout"
|
mode="popLayout"
|
||||||
>
|
>
|
||||||
<GridContainer
|
<GridContainer
|
||||||
key={`carousel-${uniqueId}-${data[0].id}`}
|
key={`carousel-${uniqueId}-${data[0]?.id}`}
|
||||||
animate="animate"
|
animate="animate"
|
||||||
custom={{ direction, loading }}
|
custom={{ direction, loading }}
|
||||||
exit="exit"
|
exit="exit"
|
||||||
|
|
Reference in a new issue