Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Dec 13, 2022
1 parent ed576bd commit 1d260b1
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ export function SaveModalContainer({
savedObjectId = lastKnownDoc.savedObjectId;
}

if (!lastKnownDoc?.title && initialContext && 'title' in initialContext && initialContext.title) {
if (
!lastKnownDoc?.title &&
initialContext &&
'isEmbeddable' in initialContext &&
initialContext.isEmbeddable
) {
title = 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 1d260b1

Please sign in to comment.