diff --git a/packages/frontend-core/src/components/grid/lib/utils.js b/packages/frontend-core/src/components/grid/lib/utils.js index 02e6d66e0e..096409b925 100644 --- a/packages/frontend-core/src/components/grid/lib/utils.js +++ b/packages/frontend-core/src/components/grid/lib/utils.js @@ -1,3 +1,4 @@ +import { BBReferenceFieldSubType, FieldType } from "@budibase/types" import { TypeIconMap } from "../../../constants" export const getColor = (idx, opacity = 0.3) => { @@ -11,7 +12,16 @@ export const getColumnIcon = column => { if (column.schema.autocolumn) { return "MagicWand" } - const { type, subtype } = column.schema + + const { type, subtype, constraints } = column.schema + if ( + type === FieldType.BB_REFERENCE && + subtype === BBReferenceFieldSubType.USER && + constraints?.type !== "array" + ) { + // This will handle old single users columns + return "User" + } const result = typeof TypeIconMap[type] === "object" && subtype