Skip to content

Commit

Permalink
Update carousel.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaynakk authored Apr 12, 2022
1 parent 277bd59 commit d17cf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonld/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function CarouselJsonLd({
case 'custom':
return (data as CustomJsonLdProps[]).map((item, index) => ({
'@type': 'ListItem',
position: item.position ? item.position : index + 1,
position: item.position ?? index + 1,
item: {
'@type': item.type,
name: item.name,
Expand Down

0 comments on commit d17cf14

Please sign in to comment.