Skip to content

Commit

Permalink
fix(ts ignore carousel error): ts ignore carousel error
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaKashuba committed Nov 22, 2023
1 parent f5ab852 commit 9ee2398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/organisms/Carousel/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const CarouselComponent = ({ children, initialSlideIndex }: CarouselComponentPro
<FlexContainer gutter={0}>
<FlexRow cols={slidesCount} justify="space-around">
{Children.toArray(children).map(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-ignore TODO: refactor legacy cloneElement
(child, index) => isValidElement(child) && cloneElement(child, { index }),
)}
</FlexRow>
Expand Down

0 comments on commit 9ee2398

Please sign in to comment.