Skip to content

Commit

Permalink
Fix removal of blank string titles in lens and maps (#129404) (#129517)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c56c45c)

# Conflicts:
#	x-pack/plugins/lens/public/embeddable/embeddable.tsx
  • Loading branch information
ThomThomson authored Apr 5, 2022
1 parent 4f4c448 commit 4b6a349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -516,7 +516,7 @@ export class Embeddable
// the container to pick them up and use them to configure filter bar and
// config dropdown correctly.
const input = this.getInput();
const title = input.hidePanelTitles ? '' : input.title || this.savedVis.title;
const title = input.hidePanelTitles ? '' : input.title ?? this.savedVis.title;
const savedObjectId = (input as LensByReferenceInput).savedObjectId;
this.updateOutput({
...this.getOutput(),
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/embeddable/map_embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class MapEmbeddable
? this._savedMap.getAttributes().title
: '';
const input = this.getInput();
const title = input.hidePanelTitles ? '' : input.title || savedMapTitle;
const title = input.hidePanelTitles ? '' : input.title ?? savedMapTitle;
const savedObjectId = 'savedObjectId' in input ? input.savedObjectId : undefined;
this.updateOutput({
...this.getOutput(),
Expand Down

0 comments on commit 4b6a349

Please sign in to comment.