diff --git a/public/app/features/library-panels/state/api.ts b/public/app/features/library-panels/state/api.ts index 40d1302c6f1..cc8cfb3f3aa 100644 --- a/public/app/features/library-panels/state/api.ts +++ b/public/app/features/library-panels/state/api.ts @@ -66,15 +66,11 @@ export async function addLibraryPanel( return result; } -export async function updateLibraryPanel( - panelSaveModel: PanelModelWithLibraryPanel, - folderId: number -): Promise { +export async function updateLibraryPanel(panelSaveModel: PanelModelWithLibraryPanel): Promise { const { uid, name, version } = panelSaveModel.libraryPanel; const kind = LibraryElementKind.Panel; const model = panelSaveModel; const { result } = await getBackendSrv().patch(`/api/library-elements/${uid}`, { - folderId, name, model, version, diff --git a/public/app/features/library-panels/utils.ts b/public/app/features/library-panels/utils.ts index b7602f0581a..07ae681628e 100644 --- a/public/app/features/library-panels/utils.ts +++ b/public/app/features/library-panels/utils.ts @@ -56,5 +56,5 @@ function saveOrUpdateLibraryPanel(panel: any, folderId: number): Promise