fix(frontend): set v1_enable correctly when saving mcp settings (#11948)

This commit is contained in:
Hiep Le 2025-12-08 23:03:26 +07:00 committed by GitHub
parent 16125f2ae9
commit 959d610d86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export function useAddMcpServer() {
const apiSettings = {
mcp_config: newConfig,
v1_enabled: settings.V1_ENABLED,
};
await SettingsService.saveSettings(apiSettings);

View File

@ -25,6 +25,7 @@ export function useDeleteMcpServer() {
const apiSettings = {
mcp_config: newConfig,
v1_enabled: settings.V1_ENABLED,
};
await SettingsService.saveSettings(apiSettings);

View File

@ -59,6 +59,7 @@ export function useUpdateMcpServer() {
const apiSettings = {
mcp_config: newConfig,
v1_enabled: settings.V1_ENABLED,
};
await SettingsService.saveSettings(apiSettings);