diff --git a/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx b/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx index 4c8973925dac0..58e2b1c17ff20 100644 --- a/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx +++ b/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx @@ -78,7 +78,6 @@ export interface DashboardContainerServices { overlays: CoreStart['overlays']; uiSettings: IUiSettingsClient; embeddable: EmbeddableStart; - hideWriteControls: boolean; uiActions: UiActionsStart; http: CoreStart['http']; } diff --git a/src/plugins/dashboard/public/application/embeddable/dashboard_container_factory.tsx b/src/plugins/dashboard/public/application/embeddable/dashboard_container_factory.tsx index a4cccd42a83dc..98b4947066c00 100644 --- a/src/plugins/dashboard/public/application/embeddable/dashboard_container_factory.tsx +++ b/src/plugins/dashboard/public/application/embeddable/dashboard_container_factory.tsx @@ -50,8 +50,8 @@ export class DashboardContainerFactoryDefinition ) {} public isEditable = async () => { - const { application, hideWriteControls } = await this.getStartServices(); - return !!application.capabilities.createNew && !hideWriteControls; + // Currently unused for dashboards + return false; }; public readonly getDisplayName = () => {