[Dashboard] Fix panel title not updating (#166004)

One line fix for panel title not updating on add to library
This commit is contained in:
Devon Thomson 2023-09-11 13:44:58 -04:00 committed by GitHub
parent 32d743a9f0
commit 1b5f105c25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ export class ClonePanelAction implements Action<ClonePanelActionContext> {
explicitInput: {
...(await embeddable.getInputAsValueType()),
hidePanelTitles: panelToClone.explicitInput.hidePanelTitles,
title: newTitle,
...(newTitle ? { title: newTitle } : {}),
id,
},
};