diff --git a/apps/web/app/(app)/environments/[environmentId]/integrations/notion/components/AddIntegrationModal.tsx b/apps/web/app/(app)/environments/[environmentId]/integrations/notion/components/AddIntegrationModal.tsx index dee8a49b99..559a506ff0 100644 --- a/apps/web/app/(app)/environments/[environmentId]/integrations/notion/components/AddIntegrationModal.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/integrations/notion/components/AddIntegrationModal.tsx @@ -309,7 +309,7 @@ export const AddIntegrationModal = ({ col={mapping[idx].column} ques={mapping[idx].question} /> -
+
-
+
{mapping.map((_, idx) => ( ))} diff --git a/apps/web/app/api/pipeline/lib/handleIntegrations.ts b/apps/web/app/api/pipeline/lib/handleIntegrations.ts index 79c4c48cd1..8717220bfc 100644 --- a/apps/web/app/api/pipeline/lib/handleIntegrations.ts +++ b/apps/web/app/api/pipeline/lib/handleIntegrations.ts @@ -227,7 +227,7 @@ const buildNotionPayloadProperties = ( } else { const value = responses[map.question.id]; properties[map.column.name] = { - [map.column.type]: getValue(map.column.type, processResponseData(value)), + [map.column.type]: getValue(map.column.type, value), }; } }); @@ -245,7 +245,9 @@ const getValue = (colType: string, value: string | string[] | number | Record ({ name: v })); + if (Array.isArray(value)) { + return value.map((v: string) => ({ name: v })); + } case "title": return [ {