Fix: rankingi csv
This commit is contained in:
parent
4320bebbc5
commit
a4eef5628d
|
@ -62,8 +62,10 @@ export class RankingComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
downloadCSVResults() {
|
||||
const arr = this.data;
|
||||
arr.map(x => delete x['username']);
|
||||
// tslint:disable-next-line:no-unused-expression
|
||||
new ngxCsv(this.data, this.group.name + '_ranking_' + this.typeOfRankingToDisplay);
|
||||
new ngxCsv(arr, this.group.name + '_ranking_' + this.typeOfRankingToDisplay);
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
|
|
Loading…
Reference in New Issue