From 95b595d5bfe47a5983c4f293feb63d412be66894 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 8 May 2018 15:36:31 -0400 Subject: [PATCH] display fixes --- src/app/tabs/dashboard.component.ts | 35 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/app/tabs/dashboard.component.ts b/src/app/tabs/dashboard.component.ts index 39a18002..2b5e7509 100644 --- a/src/app/tabs/dashboard.component.ts +++ b/src/app/tabs/dashboard.component.ts @@ -132,26 +132,25 @@ export class DashboardComponent implements OnInit, OnDestroy { } } - if (userMap.size > 0) { - this.sort(this.simGroups); - for (const g of this.simGroups) { - if (g.userMemberExternalIds == null) { - continue; - } - - const anyG = (g as any); - anyG.users = []; - for (const uid of g.userMemberExternalIds) { - if (userMap.has(uid)) { - anyG.users.push(userMap.get(uid)); - } else { - anyG.users.push(uid); - } - } - - this.sort(anyG.users); + this.sort(this.simGroups); + for (const g of this.simGroups) { + if (g.userMemberExternalIds == null) { + continue; } + + const anyG = (g as any); + anyG.users = []; + for (const uid of g.userMemberExternalIds) { + if (userMap.has(uid)) { + anyG.users.push(userMap.get(uid)); + } else { + anyG.users.push({ displayName: uid }); + } + } + + this.sort(anyG.users); } + resolve(); }); }