1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Check external table types

This commit is contained in:
Adria Navarro 2023-09-29 16:09:08 +02:00
parent bc6c6b9e80
commit 7050c5352a

View file

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