From 17688417747ad7a995de0791fe3a7b68c30c40c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Gerrit=20G=C3=B6bel?= <86782124+jggoebel@users.noreply.github.com> Date: Mon, 6 May 2024 13:45:03 +0200 Subject: [PATCH] Display user and scenario id instead of None (#209) --- .../progress-dashboard/progress-dashboard.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/dashboards/progress-dashboard/progress-dashboard.component.ts b/src/app/dashboards/progress-dashboard/progress-dashboard.component.ts index 65a9849d..9ef32971 100644 --- a/src/app/dashboards/progress-dashboard/progress-dashboard.component.ts +++ b/src/app/dashboards/progress-dashboard/progress-dashboard.component.ts @@ -139,9 +139,9 @@ export class ProgressDashboardComponent implements OnInit { this.currentProgress = progressList.map((element) => ({ ...element, - username: userMap.get(element.user) ?? 'none', - scenario_name: scenarioMap.get(element.scenario) ?? 'none', - course_name: courseMap.get(element.course) ?? '', + username: userMap.get(element.user) ?? element.user, + scenario_name: scenarioMap.get(element.scenario) ?? element.scenario, + course_name: courseMap.get(element.course) ?? element.course, })); this.users = users.filter( (user) =>