Skip to content

Commit

Permalink
fix: allow to call decorate sections more than once (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu authored Feb 21, 2024
1 parent 6bcb208 commit df80168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function decorateIcons(element, prefix = '') {
* @param {Element} main The container element
*/
function decorateSections(main) {
main.querySelectorAll(':scope > div').forEach((section) => {
main.querySelectorAll(':scope > div:not([data-section-status])').forEach((section) => {
const wrappers = [];
let defaultContent = false;
[...section.children].forEach((e) => {
Expand Down

0 comments on commit df80168

Please sign in to comment.