mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
Patch undefined siteId passthrough to API
This commit is contained in:
@@ -172,6 +172,7 @@ const Integration = ({
|
|||||||
<Button
|
<Button
|
||||||
text="Start Integration"
|
text="Start Integration"
|
||||||
onButtonPressed={async () => {
|
onButtonPressed={async () => {
|
||||||
|
const siteId = apps.find((app) => app.name === integrationApp).siteId ? apps.find((app) => app.name === integrationApp).siteId : null;
|
||||||
const result = await updateIntegration({
|
const result = await updateIntegration({
|
||||||
integrationId: integration._id,
|
integrationId: integration._id,
|
||||||
environment: envMapping[integrationEnvironment],
|
environment: envMapping[integrationEnvironment],
|
||||||
@@ -179,7 +180,7 @@ const Integration = ({
|
|||||||
isActive: true,
|
isActive: true,
|
||||||
target: integrationTarget ? integrationTarget.toLowerCase() : null,
|
target: integrationTarget ? integrationTarget.toLowerCase() : null,
|
||||||
context: integrationContext ? reverseContextNetlifyMapping[integrationContext] : null,
|
context: integrationContext ? reverseContextNetlifyMapping[integrationContext] : null,
|
||||||
siteId: apps.find((app) => app.name === integrationApp).siteId
|
siteId
|
||||||
});
|
});
|
||||||
router.reload();
|
router.reload();
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user