mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-01 19:14:35 +02:00
Fix panic in PropDef.GetValue for person
property types. (#2218)
* Fixed panic in PropDef.GetValue for `person` property types. - the GetUserByID API can return a nil user and nil error * return userid
This commit is contained in:
parent
5030b1e582
commit
46801d72cb
@ -91,6 +91,9 @@ func (pd PropDef) GetValue(v interface{}, resolver PropValueResolver) (string, e
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if user == nil {
|
||||
return userID, nil
|
||||
}
|
||||
return user.Username, nil
|
||||
}
|
||||
return userID, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user