From dbfc090e0f4033b86dc020edf1c5b3d3fa41742f Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Tue, 19 Jul 2022 18:59:51 +0200 Subject: [PATCH] make sure ui and map (extent) are properly loaded when setting background --- modules/core/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/context.js b/modules/core/context.js index 309e0b2bda..8c824d449a 100644 --- a/modules/core/context.js +++ b/modules/core/context.js @@ -548,7 +548,6 @@ export function coreContext() { // kick off some async work localizer.ensureLoaded(); - _background.ensureLoaded(); presetManager.ensureLoaded(); Object.values(services).forEach(service => { @@ -574,6 +573,7 @@ export function coreContext() { if (!context.container().empty()) { _ui.ensureLoaded() .then(() => { + _background.ensureLoaded(); _photos.init(); }); }