diff --git a/public/app/features/explore/QueryLibrary/QueryTemplatesTable/ActionsCell.tsx b/public/app/features/explore/QueryLibrary/QueryTemplatesTable/ActionsCell.tsx index 17d4d80d6aa..900de252591 100644 --- a/public/app/features/explore/QueryLibrary/QueryTemplatesTable/ActionsCell.tsx +++ b/public/app/features/explore/QueryLibrary/QueryTemplatesTable/ActionsCell.tsx @@ -1,7 +1,6 @@ import { useState } from 'react'; import { reportInteraction, getAppEvents } from '@grafana/runtime'; -import { DataQuery } from '@grafana/schema'; import { IconButton, Modal } from '@grafana/ui'; import { notifyApp } from 'app/core/actions'; import { createSuccessNotification } from 'app/core/copy/appNotification'; @@ -25,7 +24,6 @@ interface ActionsCellProps { function ActionsCell({ queryTemplate, rootDatasourceUid, queryUid }: ActionsCellProps) { const [deleteQueryTemplate] = useDeleteQueryTemplateMutation(); const [editFormOpen, setEditFormOpen] = useState(false); - //const [editQueryTemplate] = useEditQueryTemplateMutation(); const styles = useQueryLibraryListStyles(); const onDeleteQuery = (queryUid: string) => { diff --git a/public/app/features/query-library/api/factory.ts b/public/app/features/query-library/api/factory.ts index e316abced4f..e7188ac4898 100644 --- a/public/app/features/query-library/api/factory.ts +++ b/public/app/features/query-library/api/factory.ts @@ -31,7 +31,7 @@ export const queryLibraryApi = createApi({ editQueryTemplate: builder.mutation({ query: (editQueryTemplateCommand) => ({ url: `${editQueryTemplateCommand.uid}`, - method: 'POST', + method: 'PUT', data: convertQueryTemplateCommandToDataQuerySpec(editQueryTemplateCommand), }), invalidatesTags: ['QueryTemplatesList'],