From 6773f14666bab0c5603ad909d48627de0d4f3bb6 Mon Sep 17 00:00:00 2001 From: Philippe Rolet Date: Wed, 10 Jan 2024 15:12:30 +0100 Subject: [PATCH] Fix: duplicate content in gdrive/notion document upsert (#3131) Related [incident](https://dust4ai.slack.com/archives/C05B529FHV1/p1704894175095159?thread_ts=1704893056.589759&cid=C05B529FHV1) --- connectors/src/lib/data_sources.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/connectors/src/lib/data_sources.ts b/connectors/src/lib/data_sources.ts index 58768a2abff2..2bbdd211043b 100644 --- a/connectors/src/lib/data_sources.ts +++ b/connectors/src/lib/data_sources.ts @@ -259,13 +259,7 @@ export function renderSectionForTitleAndContent( return { prefix: `$title: ${title}\n\n`, content, - sections: [ - { - prefix: null, - content, - sections: [], - }, - ], + sections: [], }; }