diff --git a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/actions/flyout_edit_drilldown/flyout_edit_drilldown.tsx b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/actions/flyout_edit_drilldown/flyout_edit_drilldown.tsx index 26f5311d5b325..3de141c0a7ed7 100644 --- a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/actions/flyout_edit_drilldown/flyout_edit_drilldown.tsx +++ b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/actions/flyout_edit_drilldown/flyout_edit_drilldown.tsx @@ -74,7 +74,7 @@ export class FlyoutEditDrilldownAction implements Action { public async isCompatible({ embeddable }: EmbeddableApiContext) { if (!isApiCompatible(embeddable) || getInheritedViewMode(embeddable) !== 'edit') return false; - return (embeddable.dynamicActionsState$.getValue()?.dynamicActions.events ?? []).length > 0; + return (embeddable.dynamicActionsState$.getValue()?.dynamicActions?.events ?? []).length > 0; } public async execute({ embeddable }: EmbeddableApiContext) {