Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quiniapiezoelectricity committed Nov 14, 2024
1 parent 8b7ebae commit eac6aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/dw/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const processContent = (item, content) => {
item.description = art(path.join(__dirname, 'templates/description.art'), {
teaser: content.teaser,
video,
mainImage: $text(`[data-id="${content?.mainContentImageLink?.targetId}"]`).length === 0 ? content.mainContentImageLink : undefined,
mainImage: $text(`[data-id="${content.mainContentImageLink?.targetId}"]`).length === 0 ? content.mainContentImageLink : undefined,
// occasionally the text html already includes the main image, testing to see if an image with the same id exists
text: $text.html(),
liveblog,
Expand Down

0 comments on commit eac6aad

Please sign in to comment.