Skip to content

Commit

Permalink
Removing promise array
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Aug 1, 2024
1 parent 1d7355d commit c2d74db
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libs/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2d74db

Please sign in to comment.