Skip to content

Commit

Permalink
notion chunking hotfix: limit to 1 level the prefixing (#3176)
Browse files Browse the repository at this point in the history
Issue related to too much prefix
  • Loading branch information
philipperolet authored Jan 12, 2024
1 parent 72813bf commit acbb93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/src/connectors/notion/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ function renderPageSection({

// Prefix for depths 0 and 1, and only if children
const blockSection =
depth < 2 && adaptedBlocksByParentId[b.notionBlockId]?.length
depth < 1 && adaptedBlocksByParentId[b.notionBlockId]?.length
? renderPrefixSection(renderedBlock)
: {
prefix: null,
Expand Down

0 comments on commit acbb93b

Please sign in to comment.