Skip to content

Commit

Permalink
use input.title for unsaved vis
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Aug 9, 2021
1 parent 27aca6c commit ac5e2c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ export class VisualizeEmbeddable
private async updateHandler() {
const context = {
type: 'visualization',
name: this.vis.type.name,
name: this.vis.type.title,
id: this.vis.id ?? 'an_unsaved_vis',
description: this.vis.title ?? this.vis.type.title,
description: this.vis.title || this.input.title || this.vis.type.name,
url: this.output.editUrl,
parent: this.parent?.getInput().executionContext,
};
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/lens/public/embeddable/embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ export class Embeddable
const executionContext = {
type: 'lens',
name: this.savedVis.visualizationType ?? '',
description: this.savedVis.title ?? this.savedVis.description ?? '',
id: this.id,
description: this.savedVis.title || this.input.title || '',
url: this.output.editUrl,
parent: this.input.executionContext,
};
Expand Down

0 comments on commit ac5e2c0

Please sign in to comment.