From c2d74dbaa57ff8d90e5d830be607a3ac13f805a8 Mon Sep 17 00:00:00 2001 From: Bandana Laishram Date: Thu, 1 Aug 2024 12:16:41 +0530 Subject: [PATCH] Removing promise array --- libs/navigation/navigation.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libs/navigation/navigation.js b/libs/navigation/navigation.js index 685d834982..742305b674 100644 --- a/libs/navigation/navigation.js +++ b/libs/navigation/navigation.js @@ -42,12 +42,10 @@ export default async function loadBlock(configs, customLib) { return; } // Relative path can't be used, as the script will run on consumer's app - const [[{ default: bootstrapBlock }, { default: locales }, { setConfig }]] = await Promise.all([ - Promise.all([ - import(`${miloLibs}/libs/navigation/bootstrapper.js`), - import(`${miloLibs}/libs/utils/locales.js`), - import(`${miloLibs}/libs/utils/utils.js`), - ]), + const [{ default: bootstrapBlock }, { default: locales }, { setConfig }] = await Promise.all([ + import(`${miloLibs}/libs/navigation/bootstrapper.js`), + import(`${miloLibs}/libs/utils/locales.js`), + import(`${miloLibs}/libs/utils/utils.js`), ]); const paramConfigs = getParamsConfigs(configs, miloLibs);