mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 11:20:07 +08:00
fix: MCP服务器添加server-filesystem时填写参数后启用时报错 (#4872)
fix: MCP服务器添加server-filesystem时填写地址后启用时报错 Co-authored-by: annan01 <annan01@qianxin.com>
This commit is contained in:
parent
660603ec8b
commit
ad637ed43a
@ -324,6 +324,12 @@ const McpSettings: React.FC<Props> = ({ server }) => {
|
||||
}
|
||||
|
||||
const onToggleActive = async (active: boolean) => {
|
||||
|
||||
if (isFormChanged && active) {
|
||||
await onSave()
|
||||
return
|
||||
}
|
||||
|
||||
await form.validateFields()
|
||||
setLoadingServer(server.id)
|
||||
const oldActiveState = server.isActive
|
||||
|
||||
Loading…
Reference in New Issue
Block a user