From b07589b76a257a84f48b55c6f2bf50fa471fdace Mon Sep 17 00:00:00 2001 From: Aaron Caldwell Date: Wed, 18 Mar 2020 15:06:51 -0600 Subject: [PATCH] Set inspector in plugin start method not external function --- x-pack/legacy/plugins/maps/public/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/maps/public/plugin.ts b/x-pack/legacy/plugins/maps/public/plugin.ts index bec6564a288373..25a9e663015a4b 100644 --- a/x-pack/legacy/plugins/maps/public/plugin.ts +++ b/x-pack/legacy/plugins/maps/public/plugin.ts @@ -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); @@ -95,6 +94,7 @@ export class MapsPlugin implements Plugin { } public start(core: CoreStart, plugins: MapsPluginStartDependencies) { + setInspector(plugins.inspector); bindStartCoreAndPlugins(core, plugins); } }