Skip to content

Commit

Permalink
attempt to simplify Carousel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Dec 18, 2024
1 parent 0ea19e0 commit 0067911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/search-component/src/TrieveModal/Chat/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const Carousel = ({ children }: { children: React.ReactNode }) => {
return (
<div className="carousel-root">
<ul className="carousel-scroll" ref={scrollRef}>
{allProductsCarousel.filter((child) => child).map((child, index) => (
{allProductsCarousel.map((child, index) => child ? (
<li
className="carousel-item"
style={{
Expand All @@ -92,7 +92,7 @@ export const Carousel = ({ children }: { children: React.ReactNode }) => {
>
{child}
</li>
))}
) : null)}
</ul>
{numPages > 1 && (
<div className="carousel-controls">
Expand Down

0 comments on commit 0067911

Please sign in to comment.