mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 06:48:02 -05:00
fix(frontend): set v1_enable correctly when saving mcp settings (#11948)
This commit is contained in:
@@ -57,6 +57,7 @@ export function useAddMcpServer() {
|
||||
|
||||
const apiSettings = {
|
||||
mcp_config: newConfig,
|
||||
v1_enabled: settings.V1_ENABLED,
|
||||
};
|
||||
|
||||
await SettingsService.saveSettings(apiSettings);
|
||||
|
||||
@@ -25,6 +25,7 @@ export function useDeleteMcpServer() {
|
||||
|
||||
const apiSettings = {
|
||||
mcp_config: newConfig,
|
||||
v1_enabled: settings.V1_ENABLED,
|
||||
};
|
||||
|
||||
await SettingsService.saveSettings(apiSettings);
|
||||
|
||||
@@ -59,6 +59,7 @@ export function useUpdateMcpServer() {
|
||||
|
||||
const apiSettings = {
|
||||
mcp_config: newConfig,
|
||||
v1_enabled: settings.V1_ENABLED,
|
||||
};
|
||||
|
||||
await SettingsService.saveSettings(apiSettings);
|
||||
|
||||
Reference in New Issue
Block a user