From 1d0f5c4d9051ed1b7ce4cfd14631d945d2c90139 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Mon, 18 Oct 2021 15:10:10 +0100 Subject: [PATCH] fix formula column creation --- .../builder/src/components/backend/DataTable/formula.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/builder/src/components/backend/DataTable/formula.js b/packages/builder/src/components/backend/DataTable/formula.js index 3d03d577e7..42f203ca1c 100644 --- a/packages/builder/src/components/backend/DataTable/formula.js +++ b/packages/builder/src/components/backend/DataTable/formula.js @@ -4,10 +4,15 @@ import { get as svelteGet } from "svelte/store" // currently supported level of relationship depth (server side) const MAX_DEPTH = 1 + +//https://github.com/Budibase/budibase/issues/3030 +const internalType = "internal" + const TYPES_TO_SKIP = [ FIELDS.FORMULA.type, FIELDS.LONGFORM.type, FIELDS.ATTACHMENT.type, + internalType, ] export function getBindings({ @@ -53,6 +58,7 @@ export function getBindings({ const field = Object.values(FIELDS).find( field => field.type === schema.type ) + const label = path == null ? column : `${path}.0.${column}` // only supply a description for relationship paths const description =