Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Apr 30, 2020
1 parent 64175f1 commit 2d66a39
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions x-pack/plugins/maps/public/embeddable/map_embeddable_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ async function waitForMapDependencies() {
}

whenModulesLoadedPromise = new Promise(async resolve => {
const lazyModule = await import('./lazy');

getMapsSavedObjectLoader = lazyModule.getMapsSavedObjectLoader;
getQueryableUniqueIndexPatternIds = lazyModule.getQueryableUniqueIndexPatternIds;
MapEmbeddable = lazyModule.MapEmbeddable;
MapEmbeddableInput = lazyModule.MapEmbeddableInput;
getIndexPatternService = lazyModule.getIndexPatternService;
getHttp = lazyModule.getHttp;
getMapsCapabilities = lazyModule.getMapsCapabilities;
createMapStore = lazyModule.createMapStore;
addLayerWithoutDataSync = lazyModule.addLayerWithoutDataSync;
getInitialLayers = lazyModule.getInitialLayers;
mergeInputWithSavedMap = lazyModule.mergeInputWithSavedMap;
({
getMapsSavedObjectLoader,
getQueryableUniqueIndexPatternIds,
MapEmbeddable,
MapEmbeddableInput,
getIndexPatternService,
getHttp,
getMapsCapabilities,
createMapStore,
addLayerWithoutDataSync,
getInitialLayers,
mergeInputWithSavedMap,
} = await import('./lazy'));

resolve(true);
});
Expand Down

0 comments on commit 2d66a39

Please sign in to comment.