From eac6aad913d6bf3d9d81973b15a072e2a79900b8 Mon Sep 17 00:00:00 2001 From: quiniapiezoelectricity <73748843+quiniapiezoelectricity@users.noreply.github.com> Date: Thu, 14 Nov 2024 01:14:33 +0000 Subject: [PATCH] fix --- lib/routes/dw/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/dw/utils.ts b/lib/routes/dw/utils.ts index f4b005016e491e..e0da25959dcde6 100644 --- a/lib/routes/dw/utils.ts +++ b/lib/routes/dw/utils.ts @@ -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,