Skip to content

Commit

Permalink
fix: 🐛 use correct plugin embeddable deps
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 9, 2020
1 parent 7dc14a7 commit b160620
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/embeddable_enhanced/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ import {

export interface SetupDependencies {
embeddable: EmbeddableSetup;
uiActions: AdvancedUiActionsSetup;
advancedUiActions: AdvancedUiActionsSetup;
}

export interface StartDependencies {
embeddable: EmbeddableStart;
uiActions: AdvancedUiActionsStart;
advancedUiActions: AdvancedUiActionsStart;
}

// eslint-disable-next-line
Expand All @@ -45,7 +45,7 @@ export class EmbeddableEnhancedPlugin
implements Plugin<SetupContract, StartContract, SetupDependencies, StartDependencies> {
constructor(protected readonly context: PluginInitializerContext) {}

private uiActions?: StartDependencies['uiActions'];
private uiActions?: StartDependencies['advancedUiActions'];

public setup(core: CoreSetup<StartDependencies>, plugins: SetupDependencies): SetupContract {
this.setCustomEmbeddableFactoryProvider(plugins);
Expand All @@ -54,7 +54,7 @@ export class EmbeddableEnhancedPlugin
}

public start(core: CoreStart, plugins: StartDependencies): StartContract {
this.uiActions = plugins.uiActions;
this.uiActions = plugins.advancedUiActions;

return {};
}
Expand Down

0 comments on commit b160620

Please sign in to comment.