diff --git a/libs/features/georoutingv2/georoutingv2.js b/libs/features/georoutingv2/georoutingv2.js index 5adadb6da2..742db176fe 100644 --- a/libs/features/georoutingv2/georoutingv2.js +++ b/libs/features/georoutingv2/georoutingv2.js @@ -257,7 +257,7 @@ async function showModal(details) { const promises = [ tabs ? loadBlock(tabs) : null, tabs ? loadStyle(`${miloLibs || codeRoot}/blocks/section-metadata/section-metadata.css`) : null, - loadStyle(`${miloLibs || codeRoot}/features/georoutingv2/georoutingv2.css`), + new Promise((resolve) => { loadStyle(`${miloLibs || codeRoot}/features/georoutingv2/georoutingv2.css`, resolve); }), ]; await Promise.all(promises); // eslint-disable-next-line import/no-cycle