Skip to content

Commit

Permalink
Set inspector in plugin start method not external function
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 18, 2020
1 parent eb76efe commit b07589b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ export const bindSetupCoreAndPlugins = (core: CoreSetup, plugins: any) => {
};

export const bindStartCoreAndPlugins = (core: CoreStart, plugins: any) => {
const { inspector, file_upload, data } = plugins;
setInspector(inspector);
const { file_upload, data } = plugins;
setFileUpload(file_upload);
setIndexPatternSelect(data.ui.IndexPatternSelect);
setTimeFilter(data.query.timefilter.timefilter);
Expand All @@ -95,6 +94,7 @@ export class MapsPlugin implements Plugin<MapsPluginSetup, MapsPluginStart> {
}

public start(core: CoreStart, plugins: MapsPluginStartDependencies) {
setInspector(plugins.inspector);
bindStartCoreAndPlugins(core, plugins);
}
}

0 comments on commit b07589b

Please sign in to comment.