Skip to content

Commit

Permalink
fix for articles with no lead image displaying (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 authored Dec 7, 2022
1 parent bc65cd2 commit 275ba38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[sectionSlug]/[articleSlug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (article.leadGallery) {
const topImage = article.leadImage || gallery?.slides?.[0]?.image || null
const topCaption =
article.leadImageCaption ||
topImage.caption ||
topImage?.caption ||
gallery?.slides?.[0]?.image.caption ||
null
const galleryLength = gallery?.slides?.length || 0
Expand Down

0 comments on commit 275ba38

Please sign in to comment.