Skip to content

Commit

Permalink
make sure ui and map (extent) are properly loaded when setting backgr…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
tyrasd committed Jul 19, 2022
1 parent 9c951aa commit dbfc090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ export function coreContext() {

// kick off some async work
localizer.ensureLoaded();
_background.ensureLoaded();
presetManager.ensureLoaded();

Object.values(services).forEach(service => {
Expand All @@ -574,6 +573,7 @@ export function coreContext() {
if (!context.container().empty()) {
_ui.ensureLoaded()
.then(() => {
_background.ensureLoaded();
_photos.init();
});
}
Expand Down

0 comments on commit dbfc090

Please sign in to comment.