Skip to content

Commit

Permalink
Patch undefined siteId passthrough to API
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Dec 18, 2022
1 parent 5475555 commit 4dac03a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/components/integrations/Integration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,15 @@ 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],
app: integrationApp,
isActive: true,
target: integrationTarget ? integrationTarget.toLowerCase() : null,
context: integrationContext ? reverseContextNetlifyMapping[integrationContext] : null,
siteId: apps.find((app) => app.name === integrationApp).siteId
siteId
});
router.reload();
}}
Expand Down

0 comments on commit 4dac03a

Please sign in to comment.