From 9d186df018034966400b3664ca75b5d946d5ed67 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 29 Sep 2023 14:58:02 +0200 Subject: [PATCH] Don't modify internal API --- packages/server/src/utilities/rowProcessor/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/server/src/utilities/rowProcessor/index.ts b/packages/server/src/utilities/rowProcessor/index.ts index cf7cb0932b..5dc2546a52 100644 --- a/packages/server/src/utilities/rowProcessor/index.ts +++ b/packages/server/src/utilities/rowProcessor/index.ts @@ -251,10 +251,12 @@ export async function outputProcessing( )) as Row[] } // remove null properties to match internal API - for (let row of enriched) { - for (let key of Object.keys(row)) { - if (row[key] === null) { - delete row[key] + if (table.sourceId) { + for (let row of enriched) { + for (let key of Object.keys(row)) { + if (row[key] === null) { + delete row[key] + } } } }