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,