Only exclude _id from external sql tables

This commit is contained in:
Mel O'Hagan 2022-11-30 15:14:32 +00:00
parent 1bec73c8d9
commit 5244735828
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function getFields(
field => field.type === "formula" && field.formulaType === "static" field => field.type === "formula" && field.formulaType === "static"
) )
const table = get(tables).list.find(table => table._id === tableId) const table = get(tables).list.find(table => table._id === tableId)
if (table?.type === "external") { if (table?.type === "external" && table?.sql) {
filteredFields = filteredFields.filter(field => field.name !== "_id") filteredFields = filteredFields.filter(field => field.name !== "_id")
} }
return filteredFields.concat(staticFormulaFields) return filteredFields.concat(staticFormulaFields)