Fix types
This commit is contained in:
parent
b36d7868a4
commit
457eebbcb4
2 changed files with 3 additions and 12 deletions
|
@ -165,20 +165,11 @@ export const FIELDS = {
|
||||||
BBReferenceFieldSubType.USER
|
BBReferenceFieldSubType.USER
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// Used for display of editing existing columns
|
|
||||||
DEPRECATED_USER: {
|
|
||||||
name: "User",
|
|
||||||
type: FieldType.BB_REFERENCE,
|
|
||||||
subtype: BBReferenceFieldSubType.USER,
|
|
||||||
icon: TypeIconMap[FieldType.BB_REFERENCE_SINGLE][
|
|
||||||
BBReferenceFieldSubType.USER
|
|
||||||
],
|
|
||||||
},
|
|
||||||
USERS: {
|
USERS: {
|
||||||
name: "User List",
|
name: "User List",
|
||||||
type: FieldType.BB_REFERENCE,
|
type: FieldType.BB_REFERENCE,
|
||||||
subtype: BBReferenceFieldSubType.USERS,
|
subtype: BBReferenceFieldSubType.USER,
|
||||||
icon: TypeIconMap[FieldType.BB_REFERENCE][BBReferenceFieldSubType.USERS],
|
icon: TypeIconMap[FieldType.BB_REFERENCE][BBReferenceFieldSubType.USER],
|
||||||
constraints: {
|
constraints: {
|
||||||
type: "array",
|
type: "array",
|
||||||
},
|
},
|
||||||
|
|
|
@ -132,7 +132,7 @@ export const TypeIconMap = {
|
||||||
[FieldType.BIGINT]: "TagBold",
|
[FieldType.BIGINT]: "TagBold",
|
||||||
[FieldType.AUTO]: "MagicWand",
|
[FieldType.AUTO]: "MagicWand",
|
||||||
[FieldType.BB_REFERENCE]: {
|
[FieldType.BB_REFERENCE]: {
|
||||||
[BBReferenceFieldSubType.USER]: "User",
|
[BBReferenceFieldSubType.USER]: "UserGroup",
|
||||||
[BBReferenceFieldSubType.USERS]: "UserGroup",
|
[BBReferenceFieldSubType.USERS]: "UserGroup",
|
||||||
},
|
},
|
||||||
[FieldType.BB_REFERENCE_SINGLE]: {
|
[FieldType.BB_REFERENCE_SINGLE]: {
|
||||||
|
|
Loading…
Reference in a new issue