Skip to content

Commit

Permalink
Removed carousel arrows from <=1 datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjeevLakhwani committed Nov 21, 2024
1 parent 657c8fa commit 8fbf828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Provenance/Catalogue/CatalogueCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const CatalogueCard = ({ project }: { project: Project }) => {
<Typography.Title level={4} style={{ marginTop: 0 }}>
{t('Datasets')}
</Typography.Title>
<Carousel arrows style={{ border: '1px solid lightgray', borderRadius: '7px' }}>
<Carousel arrows={project.datasets.length > 1} style={{ border: '1px solid lightgray', borderRadius: '7px' }}>
{project.datasets.map((d) => (
<CatalogueCarouselDataset key={d.identifier} dataset={d} />
))}
Expand Down

0 comments on commit 8fbf828

Please sign in to comment.