Use FieldType constant instead of raw string.
This commit is contained in:
parent
ef84e96f98
commit
c5097487e2
|
@ -7,7 +7,7 @@
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { getContext } from "svelte"
|
import { getContext } from "svelte"
|
||||||
import { ValidColumnNameRegex } from "@budibase/shared-core"
|
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")
|
const { API, definition, rows } = getContext("grid")
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
oldColumn: column.schema,
|
oldColumn: column.schema,
|
||||||
newColumn: {
|
newColumn: {
|
||||||
name: newColumnName,
|
name: newColumnName,
|
||||||
type: "bb_reference",
|
type: FieldType.BB_REFERENCE,
|
||||||
subtype,
|
subtype,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue