From 1b5f105c25ac65088323a226e4bd085ef1d52dca Mon Sep 17 00:00:00 2001 From: Devon Thomson Date: Mon, 11 Sep 2023 13:44:58 -0400 Subject: [PATCH] [Dashboard] Fix panel title not updating (#166004) One line fix for panel title not updating on add to library --- .../dashboard/public/dashboard_actions/clone_panel_action.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx b/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx index e028d8f387312..8b3e9545114ff 100644 --- a/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx +++ b/src/plugins/dashboard/public/dashboard_actions/clone_panel_action.tsx @@ -91,7 +91,7 @@ export class ClonePanelAction implements Action { explicitInput: { ...(await embeddable.getInputAsValueType()), hidePanelTitles: panelToClone.explicitInput.hidePanelTitles, - title: newTitle, + ...(newTitle ? { title: newTitle } : {}), id, }, };