Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Patch undefined siteId passthrough to API

Tuan Dang4dac03ab94bf
diff --git a/frontend/components/integrations/Integration.tsx b/frontend/components/integrations/Integration.tsx
index d3fe58d654..a42fa5bcf8 100644
--- a/frontend/components/integrations/Integration.tsx
+++ b/frontend/components/integrations/Integration.tsx
@@ -172,6 +172,7 @@ const Integration = ({
<Button
text="Start Integration"
onButtonPressed={async () => {
+ const siteId = apps.find((app) => app.name === integrationApp).siteId ? apps.find((app) => app.name === integrationApp).siteId : null;
const result = await updateIntegration({
integrationId: integration._id,
environment: envMapping[integrationEnvironment],
@@ -179,7 +180,7 @@ const Integration = ({
isActive: true,
target: integrationTarget ? integrationTarget.toLowerCase() : null,
context: integrationContext ? reverseContextNetlifyMapping[integrationContext] : null,
- siteId: apps.find((app) => app.name === integrationApp).siteId
+ siteId
});
router.reload();
}}