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] + } } } }