Fix ML swimlane embeddable titles (#168647)

Stops the ML Embeddables from setting the default title and default description on their outputs during initialization.
This commit is contained in:
Devon Thomson 2023-10-13 09:28:57 -04:00 committed by GitHub
parent ae4ebd4808
commit 7cb153d4d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View file

@ -66,7 +66,7 @@ export class EmbeddableChangePointChart extends AbstractEmbeddable<
initialInput: EmbeddableChangePointChartInput,
parent?: IContainer
) {
super(initialInput, { defaultTitle: initialInput.title }, parent);
super(initialInput, {}, parent);
this.initOutput().finally(() => this.setInitializationFinished());
}

View file

@ -33,14 +33,7 @@ export abstract class AnomalyDetectionEmbeddable<
private dataViewsService: DataViewsContract,
parent?: IContainer
) {
super(
initialInput,
{
defaultTitle: initialInput.title,
defaultDescription: initialInput.description,
} as Output,
parent
);
super(initialInput, {} as Output, parent);
this.initializeOutput(initialInput).finally(() => {
this.setInitializationFinished();