From 20209d99fadc039b76afe67bbbda5a9f9bfd41bf Mon Sep 17 00:00:00 2001 From: RitwikSrivastava <45959816+RitwikSrivastava@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:08:39 +0530 Subject: [PATCH] Update columns-small.js --- blocks/columns-small/columns-small.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blocks/columns-small/columns-small.js b/blocks/columns-small/columns-small.js index d5e8cc9b..3c9f91d3 100644 --- a/blocks/columns-small/columns-small.js +++ b/blocks/columns-small/columns-small.js @@ -13,11 +13,11 @@ export default function decorate(block) { const pics = col.querySelectorAll('picture'); if (pics.length) { const picWrapper = pics[0].closest('div'); - if (picWrapper && picWrapper.children.length === pics.length) { - // pictures (either wrapped in achors, or otherwise) - // are only content in the column - picWrapper.classList.add('columns-small-img-col'); - } + if (picWrapper && picWrapper.children.length === pics.length) { + // pictures (either wrapped in achors, or otherwise) + // are only content in the column + picWrapper.classList.add('columns-small-img-col'); + } } } });