Expose bigints as a column to do calculations on.
This commit is contained in:
parent
7ee72b6c95
commit
5e4cfafa96
|
@ -7,7 +7,12 @@
|
|||
Icon,
|
||||
Multiselect,
|
||||
} from "@budibase/bbui"
|
||||
import { CalculationType, canGroupBy, FieldType } from "@budibase/types"
|
||||
import {
|
||||
CalculationType,
|
||||
canGroupBy,
|
||||
FieldType,
|
||||
isNumeric,
|
||||
} from "@budibase/types"
|
||||
import InfoDisplay from "pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/InfoDisplay.svelte"
|
||||
import { getContext } from "svelte"
|
||||
|
||||
|
@ -90,10 +95,7 @@
|
|||
return Object.entries(schema)
|
||||
.filter(([field, fieldSchema]) => {
|
||||
// Only allow numeric fields that are not calculations themselves
|
||||
if (
|
||||
fieldSchema.calculationType ||
|
||||
fieldSchema.type !== FieldType.NUMBER
|
||||
) {
|
||||
if (fieldSchema.calculationType || !isNumeric(fieldSchema.type)) {
|
||||
return false
|
||||
}
|
||||
// Don't allow duplicates
|
||||
|
|
Loading…
Reference in New Issue