Handled the case of missing user (#1367)
This commit is contained in:
parent
801bc2cc13
commit
e40424e319
2 changed files with 12 additions and 1 deletions
|
@ -436,7 +436,13 @@ func (s *MattermostAuthLayer) userWorkspacesFromRows(rows *sql.Rows) ([]model.Us
|
|||
names := []string{}
|
||||
|
||||
for _, userID := range userIDs {
|
||||
names = append(names, users[userID].Username)
|
||||
user, exists := users[userID]
|
||||
username := userID
|
||||
if exists {
|
||||
username = user.Username
|
||||
}
|
||||
|
||||
names = append(names, username)
|
||||
}
|
||||
|
||||
rawUserWorkspaces[i].Title = strings.Join(names, ", ")
|
||||
|
|
|
@ -109,4 +109,9 @@
|
|||
flex-direction: column;
|
||||
gap: 40px;
|
||||
//background: url('../../../static/onboardingBg.jpg');
|
||||
|
||||
.text-heading2 {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue