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

This commit is contained in:
Hugo Häggmark 2022-02-08 06:55:00 +01:00 committed by GitHub
parent 6baf38e84b
commit 9e1cb8c12a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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