From acbb93b76f997a97054c678877a1fe752c23ba9b Mon Sep 17 00:00:00 2001 From: Philippe Rolet Date: Fri, 12 Jan 2024 16:14:20 +0100 Subject: [PATCH] notion chunking hotfix: limit to 1 level the prefixing (#3176) Issue related to too much prefix --- connectors/src/connectors/notion/temporal/activities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/src/connectors/notion/temporal/activities.ts b/connectors/src/connectors/notion/temporal/activities.ts index 38c00d25f010..62e56d394ef5 100644 --- a/connectors/src/connectors/notion/temporal/activities.ts +++ b/connectors/src/connectors/notion/temporal/activities.ts @@ -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,