message: Replaced then with async
diff: @@ -44,7 +44,7 @@ export class ReportComponent implements OnInit {
  .catch((err) => {
  });
  }
  - private exportReport() {
  + private async exportReport() {
  const tasks = this.filterCourseForTasks();
  if (tasks.length === 0) {
  @@ -53,9 +53,9 @@ export class ReportComponent implements OnInit {
  });
  } else {
  const header = this.generateCsvHeader(tasks);
  - this.reportService.getCourseResults(this.courseId)
  - .then((report) => {
  - if (report.length) {
  + const report = await this.reportService.getCourseResults(this.courseId);
  +
  + if (report.length > 0) {
  const csvContent = this.generateCsvContent(report, tasks, header);
  this.createDownload(csvContent);
  } else {
  @@ -63,7 +63,6 @@ export class ReportComponent implements OnInit {
  this.snackBar.open(t['report.noStudents'], t['common.dismiss']);
  });
  }
  - });
  }
  }
  