LibraryPanels: Removes save errors for panels changed to library panels (#45033) (#45035)

(cherry picked from commit 9e1cb8c12a)

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-02-08 07:56:42 +01:00
committed by GitHub
co-authored by Hugo Häggmark
parent 836168eb13
commit 4f21d4dabe
+1 -1
View File
@@ -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