LibraryPanels: Fix issue where viewer with folder edit permissions could not update library panel (#58420)

* LibraryPanels: Fix issue where viewer with folder edit permissions could not update library panel
This commit is contained in:
kay delaney
2022-11-22 10:05:55 +00:00
committed by GitHub
parent 062c5b805c
commit 850f5fa8d7

View File

@@ -90,9 +90,10 @@ export async function addLibraryPanel(
export async function updateLibraryPanel(panelSaveModel: PanelModelWithLibraryPanel): Promise<LibraryElementDTO> {
const { libraryPanel, ...model } = panelSaveModel;
const { uid, name, version } = libraryPanel;
const { uid, name, version, folderUid } = libraryPanel;
const kind = LibraryElementKind.Panel;
const { result } = await getBackendSrv().patch(`/api/library-elements/${uid}`, {
folderUid,
name,
model,
version,