Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferri0 committed Sep 24, 2024
1 parent 7894047 commit b1e831c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blocks/commerce-account-sidebar/commerce-account-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ export default async function decorate(block) {
});

block.innerHTML = '';
sidebarItems.forEach((el) => {
block.appendChild(el);

return new Promise((resolve) => {
sidebarItems.forEach((el) => {
block.appendChild(el);
});
resolve();
});
}

Expand Down

0 comments on commit b1e831c

Please sign in to comment.