From 546cebce899329a58e042a1227955ec187ee6993 Mon Sep 17 00:00:00 2001 From: rahuljain-dev Date: Mon, 31 Jul 2023 10:54:24 +0530 Subject: [PATCH] WEBUI-1202: Fix blob enrichers initialization when WOPI is installed --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e6a630deac..307831b5ee 100644 --- a/index.js +++ b/index.js @@ -10,11 +10,11 @@ const loadApp = () => import(/* webpackMode: "eager" */ './elements/nuxeo-app.js const loadLegacy = () => import(/* webpackMode: "eager" */ './legacy.js'); const loadBundle = () => import('./elements/nuxeo-web-ui-bundle.html').then(({ default: bundleHtml }) => importHTML(bundleHtml)); -const loadAddons = () => { +const loadAddons = async () => { const bundles = [...Nuxeo.UI.bundles, 'nuxeo-spreadsheet']; // load addons / bundles // NXP-26977: await loading of addons - Promise.all( + await Promise.all( bundles.map((url) => { if (url.endsWith('.html')) { return new Promise((resolve, reject) => importHref(url, resolve, reject));