From 3625e260ffbe0103a3039d15e6982155c120e652 Mon Sep 17 00:00:00 2001 From: Abrasimov Yaroslav Date: Tue, 24 Sep 2024 16:32:24 +0200 Subject: [PATCH] Rollback experiment --- .../commerce-account-sidebar/commerce-account-sidebar.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/blocks/commerce-account-sidebar/commerce-account-sidebar.js b/blocks/commerce-account-sidebar/commerce-account-sidebar.js index 5ac6d43028..60d58dab00 100644 --- a/blocks/commerce-account-sidebar/commerce-account-sidebar.js +++ b/blocks/commerce-account-sidebar/commerce-account-sidebar.js @@ -39,12 +39,8 @@ export default async function decorate(block) { }); block.innerHTML = ''; - - return new Promise((resolve) => { - sidebarItems.forEach((el) => { - block.appendChild(el); - }); - resolve(); + sidebarItems.forEach((el) => { + block.appendChild(el); }); }