Skip to content

Commit

Permalink
Fix enrichment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Feb 26, 2024
1 parent c79f666 commit 94e6337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/enrichment/enrichment.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default async function decorate(block) {
if (section) {
block.closest('.section').classList.add(...section.classList);
const wrapper = block.closest('.enrichment-wrapper');
section.childNodes.forEach((child) => wrapper.parentNode.insertBefore(child, wrapper));
Array.from(section.children)
.forEach((child) => wrapper.parentNode.insertBefore(child, wrapper));
}
});

Expand Down

0 comments on commit 94e6337

Please sign in to comment.