[Lens] Fixes the overwriting of the description when updating a by ref chart (#172653)

## Summary

Closes https://github.com/elastic/kibana/issues/170363

Doesn't overwrite the description of a by reference Lens chart when
updating.
This commit is contained in:
Stratoula Kalafateli 2023-12-06 16:19:38 +02:00 committed by GitHub
parent 3ca265abe2
commit b462e28ac4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -668,7 +668,7 @@ export const LensTopNavMenu = ({
newCopyOnSave: false,
isTitleDuplicateConfirmed: false,
returnToOrigin: true,
newDescription: contextFromEmbeddable ? initialContext.description : '',
...(contextFromEmbeddable && { newDescription: initialContext.description }),
panelTimeRange: contextFromEmbeddable ? initialContext.panelTimeRange : undefined,
},
{