mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-21 13:32:49 +08:00
### What problem does this PR solve? Feat: Delete MCP server #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -106,8 +106,8 @@ export const useDeleteMcpServer = () => {
|
||||
mutateAsync,
|
||||
} = useMutation({
|
||||
mutationKey: [McpApiAction.DeleteMcpServer],
|
||||
mutationFn: async (params: Record<string, any>) => {
|
||||
const { data = {} } = await mcpServerService.delete(params);
|
||||
mutationFn: async (ids: string[]) => {
|
||||
const { data = {} } = await mcpServerService.delete({ mcp_ids: ids });
|
||||
if (data.code === 0) {
|
||||
message.success(i18n.t(`message.deleted`));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user