Fixe types
This commit is contained in:
parent
f4675aab6e
commit
c6c1450d06
|
@ -1,18 +1,19 @@
|
|||
import { fixAutoColumnSubType } from "../utils"
|
||||
import { AutoFieldDefaultNames, AutoFieldSubTypes } from "../../../constants"
|
||||
import { FieldSchema, FieldType, RelationshipType } from "@budibase/types"
|
||||
|
||||
describe("rowProcessor utility", () => {
|
||||
describe("fixAutoColumnSubType", () => {
|
||||
let schema = {
|
||||
let schema: FieldSchema = {
|
||||
name: "",
|
||||
type: "link",
|
||||
type: FieldType.LINK,
|
||||
subtype: "", // missing subtype
|
||||
icon: "ri-magic-line",
|
||||
autocolumn: true,
|
||||
constraints: { type: "array", presence: false },
|
||||
tableId: "ta_users",
|
||||
fieldName: "test-Updated By",
|
||||
relationshipType: "many-to-many",
|
||||
relationshipType: RelationshipType.MANY_TO_MANY,
|
||||
sortable: false,
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import {
|
|||
FormulaTypes,
|
||||
} from "../../constants"
|
||||
import { processStringSync } from "@budibase/string-templates"
|
||||
import { FieldSchema, FieldType, Row, Table } from "@budibase/types"
|
||||
import { FieldSchema, Row, Table } from "@budibase/types"
|
||||
|
||||
/**
|
||||
* If the subtype has been lost for any reason this works out what
|
||||
|
|
Loading…
Reference in New Issue