From 667f884db16bdf3454e23757c0ff415debfc7269 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 8 Feb 2022 07:13:02 +0100 Subject: [PATCH] LibraryPanels: Removes save errors for panels changed to library panels (#45033) (#45034) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 9e1cb8c12a878a69611a67ceb338f707c50d8e50) Co-authored-by: Hugo Häggmark --- public/app/features/panel/state/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/panel/state/actions.ts b/public/app/features/panel/state/actions.ts index 12b58f90903..84e12c00199 100644 --- a/public/app/features/panel/state/actions.ts +++ b/public/app/features/panel/state/actions.ts @@ -93,7 +93,7 @@ export function changeToLibraryPanel(panel: PanelModel, libraryPanel: LibraryEle ...libraryPanel.model, gridPos: panel.gridPos, id: panel.id, - libraryPanel: toPanelModelLibraryPanel(libraryPanel.model), + libraryPanel: toPanelModelLibraryPanel(libraryPanel), }); // a new library panel usually means new queries, clear any current result