1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Use FieldType constant instead of raw string.

This commit is contained in:
Sam Rose 2023-10-25 16:38:55 +01:00
parent ef84e96f98
commit c5097487e2
No known key found for this signature in database

View file

@ -7,7 +7,7 @@
} from "@budibase/bbui"
import { getContext } from "svelte"
import { ValidColumnNameRegex } from "@budibase/shared-core"
import { FieldSubtype, RelationshipType } from "@budibase/types"
import { FieldSubtype, FieldType, RelationshipType } from "@budibase/types"
const { API, definition, rows } = getContext("grid")
@ -37,7 +37,7 @@
oldColumn: column.schema,
newColumn: {
name: newColumnName,
type: "bb_reference",
type: FieldType.BB_REFERENCE,
subtype,
},
})