fix: use explicit baseId param in updateIntegration to prevent stale routing

This commit is contained in:
DarkPhoenix2704
2026-03-31 13:03:01 +00:00
parent 65a9505bf4
commit ee80d3e433

View File

@@ -305,14 +305,17 @@ const createOrUpdateIntegration = async () => {
props.baseId,
)
} else {
await updateIntegration({
id: activeIntegration.value.id,
title: formState.value.title,
type: IntegrationsType.Database,
sub_type: formState.value.dataSource.client,
config,
is_private: formState.value.is_private,
})
await updateIntegration(
{
id: activeIntegration.value.id,
title: formState.value.title,
type: IntegrationsType.Database,
sub_type: formState.value.dataSource.client,
config,
is_private: formState.value.is_private,
},
props.baseId,
)
}
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))