Skip to content

Commit

Permalink
fix notion db trim (#3909)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Feb 23, 2024
1 parent 4706beb commit 9506467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/src/connectors/notion/lib/notion_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>
)
);
Expand Down

0 comments on commit 9506467

Please sign in to comment.