From 850f5fa8d7d9998f5a57f6980bea5c45c13de5fe Mon Sep 17 00:00:00 2001 From: kay delaney <45561153+kaydelaney@users.noreply.github.com> Date: Tue, 22 Nov 2022 10:05:55 +0000 Subject: [PATCH] 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 --- public/app/features/library-panels/state/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/library-panels/state/api.ts b/public/app/features/library-panels/state/api.ts index 026ccfb8274..e82b2d5e4e1 100644 --- a/public/app/features/library-panels/state/api.ts +++ b/public/app/features/library-panels/state/api.ts @@ -90,9 +90,10 @@ export async function addLibraryPanel( export async function updateLibraryPanel(panelSaveModel: PanelModelWithLibraryPanel): Promise { 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,