diff --git a/server/public/model/custom_profile_attributes.go b/server/public/model/custom_profile_attributes.go index 8839ad07b74..06e8263afe0 100644 --- a/server/public/model/custom_profile_attributes.go +++ b/server/public/model/custom_profile_attributes.go @@ -63,16 +63,26 @@ func NewCustomProfileAttributesSelectOptionFromMap(m map[string]any) CustomProfi name := "" color := "" + // Check for both "Name" and "name" if v, ok := m["Name"]; ok { if vStr, ok := v.(string); ok { name = vStr } + } else if v, ok := m["name"]; ok { + if vStr, ok := v.(string); ok { + name = vStr + } } + // Check for both "Color" and "color" if v, ok := m["Color"]; ok { if vStr, ok := v.(string); ok { color = vStr } + } else if v, ok := m["color"]; ok { + if vStr, ok := v.(string); ok { + color = vStr + } } return NewCustomProfileAttributesSelectOption(name, color)