Skip to content

Commit

Permalink
Get correct title for replace action
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Dec 13, 2022
1 parent 1d260b1 commit 705101f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,12 @@ export const LensTopNavMenu = ({
{
newTitle:
title ||
(initialContext && 'title' in initialContext && initialContext.title
(initialContext && 'isEmbeddable' in initialContext && initialContext.isEmbeddable
? i18n.translate('xpack.lens.app.convertedLabel', {
defaultMessage: '{title} (converted)',
values: {
title: initialContext.title,
title:
initialContext.title || `${initialContext.visTypeTitle} visualization`,
},
})
: ''),
Expand Down

0 comments on commit 705101f

Please sign in to comment.