make sure ui and map (extent) are properly loaded when setting background

This commit is contained in:
Martin Raifer
2022-07-19 18:59:51 +02:00
parent 9c951aa235
commit dbfc090e0f

View File

@@ -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();
});
}