From b8c8ac6daaa8f93296f07c465435a57c786ae41b Mon Sep 17 00:00:00 2001 From: tmaret Date: Thu, 14 Mar 2024 00:43:54 +0100 Subject: [PATCH] issue-279 - fix link check --- cigaradvisor/blocks/captioned-image/captioned-image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cigaradvisor/blocks/captioned-image/captioned-image.js b/cigaradvisor/blocks/captioned-image/captioned-image.js index 74b15b7e..8b69620a 100644 --- a/cigaradvisor/blocks/captioned-image/captioned-image.js +++ b/cigaradvisor/blocks/captioned-image/captioned-image.js @@ -18,7 +18,7 @@ export default async function decorate(block) { // Does the image link? const keys = Object.keys(config); - if (keys.link) { + if (config.link) { const idx = keys.indexOf('link'); const a = block.querySelector(`:scope > div:nth-of-type(${idx + 1}) > div:nth-of-type(2) a`); a.append(picture);