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 a997d51 commit 949c494
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cigaradvisor/blocks/imagecta/imagecta.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ export default function decorate(block) {
});
block.append(anchor);
const children = block.children;

Check failure on line 17 in cigaradvisor/blocks/imagecta/imagecta.js

View workflow job for this annotation

GitHub Actions / build

Use object destructuring

// Loop through the children and remove those that are not anchor tags
Array.from(children).forEach((child) => {
if (child.tagName !== 'A') {
console.log(child.tagName);
block.removeChild(child);
}
});

}
}

0 comments on commit 949c494

Please sign in to comment.