From e046696d72b84e7783828a3538f71c2ad730fbab Mon Sep 17 00:00:00 2001 From: kailasnadh790 <53608019+kailasnadh790@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:56:08 -0500 Subject: [PATCH] Update imagecta.js --- cigaradvisor/blocks/imagecta/imagecta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cigaradvisor/blocks/imagecta/imagecta.js b/cigaradvisor/blocks/imagecta/imagecta.js index b61838ad..017170d2 100644 --- a/cigaradvisor/blocks/imagecta/imagecta.js +++ b/cigaradvisor/blocks/imagecta/imagecta.js @@ -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') {