diff --git a/connectors/src/connectors/notion/lib/notion_api.ts b/connectors/src/connectors/notion/lib/notion_api.ts index b239fa1f24eb..751142cf1164 100644 --- a/connectors/src/connectors/notion/lib/notion_api.ts +++ b/connectors/src/connectors/notion/lib/notion_api.ts @@ -810,7 +810,7 @@ export async function renderDatabaseFromPages({ const content = rows.map((r) => header.reduce( - (acc, k, i) => ({ ...acc, [k]: r[i]?.trim() ?? "" }), + (acc, k, i) => ({ ...acc, [k]: r[i]?.trim?.() ?? "" }), {} as Record ) );