Skip to content

Commit

Permalink
issue-279 - fix link check
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaret committed Mar 13, 2024
1 parent 32af86d commit b8c8ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cigaradvisor/blocks/captioned-image/captioned-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8c8ac6

Please sign in to comment.