1
0
Fork 0
mirror of synced 2024-09-18 10:20:11 +12:00

Fix types

This commit is contained in:
Adria Navarro 2024-05-03 17:29:47 +02:00
parent b36d7868a4
commit 457eebbcb4
2 changed files with 3 additions and 12 deletions

View file

@ -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",
}, },

View file

@ -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]: {