diff --git a/x-pack/plugins/ml/public/plugin.ts b/x-pack/plugins/ml/public/plugin.ts index 97aede3d9dd1f..351d3e1c54aee 100644 --- a/x-pack/plugins/ml/public/plugin.ts +++ b/x-pack/plugins/ml/public/plugin.ts @@ -35,9 +35,6 @@ export interface MlSetupDependencies { export class MlPlugin implements Plugin { setup(core: CoreSetup, pluginsSetup: MlSetupDependencies) { - const home = pluginsSetup.home; - const licensing = pluginsSetup.licensing; - core.application.register({ id: PLUGIN_ID, title: i18n.translate('xpack.ml.plugin.title', { @@ -58,8 +55,8 @@ export class MlPlugin implements Plugin { management: pluginsSetup.management, usageCollection: pluginsSetup.usageCollection, licenseManagement: pluginsSetup.licenseManagement, - licensing, - home, + licensing: pluginsSetup.licensing, + home: pluginsSetup.home, }, { element: params.element, @@ -71,7 +68,7 @@ export class MlPlugin implements Plugin { }, }); - registerFeature(home); + registerFeature(pluginsSetup.home); initManagementSection(pluginsSetup, core); return {};