diff --git a/blocks/table/table.js b/blocks/table/table.js index 2754d2ea..6fb200b1 100644 --- a/blocks/table/table.js +++ b/blocks/table/table.js @@ -9,12 +9,12 @@ function removeClassesFromChildTables(table) { export default function decorate(block) { const tableRows = block.querySelectorAll('.table[data-block-name="table"] tr'); tableRows.forEach((row) => { - const cells = row.querySelectorAll('td'); - cells.forEach((cell) => { - if (cell.innerText.trim() === '') { - cell.classList.add('bg-transparent'); - } - }); + const cells = row.querySelectorAll('td'); + cells.forEach((cell) => { + if (cell.innerText.trim() === '') { + cell.classList.add('bg-transparent'); + } + }); }); const parentTable = block.querySelector('.table[data-block-name="table"] table'); const childTable = parentTable.querySelector('table');