diff --git a/cigaradvisor/blocks/captioned-image/captioned-image.js b/cigaradvisor/blocks/captioned-image/captioned-image.js index 74b15b7..8b69620 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);