Skip to content

Commit

Permalink
Update imagecta.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kailasnadh790 committed Nov 30, 2023
1 parent 949c494 commit e046696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cigaradvisor/blocks/imagecta/imagecta.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function decorate(block) {
anchor.setAttribute('href', link);
});
block.append(anchor);
const children = block.children;
const { children } = block;
// Loop through the children and remove those that are not anchor tags
Array.from(children).forEach((child) => {
if (child.tagName !== 'A') {
Expand Down

0 comments on commit e046696

Please sign in to comment.