Handled the case of missing user (#1367)

This commit is contained in:
Harshil Sharma 2021-09-29 11:27:21 +05:30 committed by GitHub
parent 801bc2cc13
commit e40424e319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -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, ", ")

View file

@ -109,4 +109,9 @@
flex-direction: column;
gap: 40px;
//background: url('../../../static/onboardingBg.jpg');
.text-heading2 {
overflow: hidden;
text-overflow: ellipsis;
}
}