From 2d011908f6a4dc71e221ea3dd239810b9f05998d Mon Sep 17 00:00:00 2001 From: McPizza0 Date: Fri, 22 Nov 2024 21:30:38 +0100 Subject: [PATCH] feat: add support for other misc integration regions --- backend/src/server/routes/v1/integration-router.ts | 4 ++++ .../components/IntegrationSettingsSection.tsx | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/server/routes/v1/integration-router.ts b/backend/src/server/routes/v1/integration-router.ts index 44dac0dceb..c1fcd6d1d0 100644 --- a/backend/src/server/routes/v1/integration-router.ts +++ b/backend/src/server/routes/v1/integration-router.ts @@ -228,6 +228,10 @@ export const registerIntegrationRouter = async (server: FastifyZodProvider) => { awsIamRole: awsRoleDetails.role }; } + } else { + integration.metadata = { + region: integration.region + }; } return { integration }; diff --git a/frontend/src/views/IntegrationsPage/IntegrationDetailsPage/components/IntegrationSettingsSection.tsx b/frontend/src/views/IntegrationsPage/IntegrationDetailsPage/components/IntegrationSettingsSection.tsx index 18004cd508..535f957460 100644 --- a/frontend/src/views/IntegrationsPage/IntegrationDetailsPage/components/IntegrationSettingsSection.tsx +++ b/frontend/src/views/IntegrationsPage/IntegrationDetailsPage/components/IntegrationSettingsSection.tsx @@ -28,7 +28,8 @@ const metadataMappings: Record {