Skip to content

Commit

Permalink
Get config in legacy in safe way to accomodate karma tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed May 19, 2020
1 parent 04b7541 commit c8f61f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const REACT_ANCHOR_DOM_ELEMENT_ID = 'react-maps-root';
const app = uiModules.get(MAP_APP_PATH, []);

// Init required services. Necessary while in legacy
const config = npSetup.plugins.maps.config;
const config = _.get(npSetup, 'plugins.maps.config', {});
const kibanaVersion = npSetup.core.injectedMetadata.getKibanaVersion();
bindNpSetupCoreAndPlugins(npSetup.core, npSetup.plugins, config, kibanaVersion);
bindNpStartCoreAndPlugins(npStart.core, npStart.plugins);
Expand Down

0 comments on commit c8f61f4

Please sign in to comment.