diff --git a/src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts b/src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts index abb98f55a1e48..58fc7327232b8 100644 --- a/src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts +++ b/src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts @@ -22,7 +22,6 @@ import { UiActionsDynamicActionManager } from '../../../../../plugins/ui_actions import { Adapters } from '../types'; import { IContainer } from '../containers/i_container'; import { ViewMode } from '../types'; -import { EmbeddableActionStorage } from './embeddable_action_storage'; export interface EmbeddableInput { viewMode?: ViewMode; @@ -60,7 +59,6 @@ export interface IEmbeddable< I extends EmbeddableInput = EmbeddableInput, O extends EmbeddableOutput = EmbeddableOutput > { - actionStorage: EmbeddableActionStorage; /** * Is this embeddable an instance of a Container class, can it contain * nested embeddables? diff --git a/src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx b/src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx index 98ea706182ddf..980b17ff17f1c 100644 --- a/src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx +++ b/src/plugins/embeddable/public/lib/panel/embeddable_panel.tsx @@ -207,11 +207,15 @@ export class EmbeddablePanel extends React.Component { if (this.embeddableRoot.current) { this.props.embeddable.render(this.embeddableRoot.current); } - this.props.embeddable.actionStorage.count().then(drilldownCount => { - if (this.mounted) { - this.setState({ drilldownCount }); - } - }); + + const dynamicActions = this.props.embeddable.dynamicActions; + if (dynamicActions) { + dynamicActions.count().then(drilldownCount => { + if (this.mounted) { + this.setState({ drilldownCount }); + } + }); + } } closeMyContextMenuPanel = () => {