Check external table types

This commit is contained in:
Adria Navarro 2023-09-29 16:09:08 +02:00
parent bc6c6b9e80
commit 7050c5352a
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import {
processInputBBReferences, processInputBBReferences,
processOutputBBReferences, processOutputBBReferences,
} from "./bbReferenceProcessor" } from "./bbReferenceProcessor"
import { isExternalTable } from "../../integrations/utils"
export * from "./utils" export * from "./utils"
type AutoColumnProcessingOpts = { type AutoColumnProcessingOpts = {
@ -251,7 +252,7 @@ export async function outputProcessing<T extends Row[] | Row>(
)) as Row[] )) as Row[]
} }
// remove null properties to match internal API // remove null properties to match internal API
if (table.sourceId) { if (isExternalTable(table._id!)) {
for (let row of enriched) { for (let row of enriched) {
for (let key of Object.keys(row)) { for (let key of Object.keys(row)) {
if (row[key] === null) { if (row[key] === null) {