mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
fix: Update custom profile attributes map keys to use capitalized names
This commit is contained in:
committed by
Julien Tant (aider)
parent
e8de7dfc6d
commit
47ca184876
@@ -63,13 +63,13 @@ func NewCustomProfileAttributesSelectOptionFromMap(m map[string]any) CustomProfi
|
||||
name := ""
|
||||
color := ""
|
||||
|
||||
if v, ok := m["name"]; ok {
|
||||
if v, ok := m["Name"]; ok {
|
||||
if vStr, ok := v.(string); ok {
|
||||
name = vStr
|
||||
}
|
||||
}
|
||||
|
||||
if v, ok := m["color"]; ok {
|
||||
if v, ok := m["Color"]; ok {
|
||||
if vStr, ok := v.(string); ok {
|
||||
color = vStr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user