From 78bc3c004014b8fee868cfe01a71e9df4a1fd77f Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Wed, 30 Nov 2022 15:14:32 +0000 Subject: [PATCH] Only exclude _id from external sql tables --- packages/builder/src/helpers/searchFields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/helpers/searchFields.js b/packages/builder/src/helpers/searchFields.js index 29a5f77a0d..1a2d3b17e7 100644 --- a/packages/builder/src/helpers/searchFields.js +++ b/packages/builder/src/helpers/searchFields.js @@ -35,7 +35,7 @@ export function getFields( field => field.type === "formula" && field.formulaType === "static" ) 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") } return filteredFields.concat(staticFormulaFields)