Browse Source

fix formula column creation

pull/3046/head
Peter Clement 5 years ago
parent
commit
ee77ce7e6b
  1. 6
      packages/builder/src/components/backend/DataTable/formula.js

6
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 =

Loading…
Cancel
Save