mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 10:27:38 +00:00
fix: use explicit baseId param in updateIntegration to prevent stale routing
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user