mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Display MCP multiple selection bar #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -28,13 +28,17 @@ export const useEditMcp = () => {
|
||||
|
||||
const handleOk = useCallback(
|
||||
async (values: any) => {
|
||||
let code;
|
||||
if (id) {
|
||||
updateMcpServer(values);
|
||||
code = await updateMcpServer(values);
|
||||
} else {
|
||||
createMcpServer(values);
|
||||
code = await createMcpServer(values);
|
||||
}
|
||||
if (code === 0) {
|
||||
hideEditModal();
|
||||
}
|
||||
},
|
||||
[createMcpServer, id, updateMcpServer],
|
||||
[createMcpServer, hideEditModal, id, updateMcpServer],
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user