diff --git a/ui/src/app/affiliation/affiliations.component.ts b/ui/src/app/affiliation/affiliations.component.ts index e646ab505..548d69bd7 100644 --- a/ui/src/app/affiliation/affiliations.component.ts +++ b/ui/src/app/affiliation/affiliations.component.ts @@ -96,7 +96,7 @@ export class AffiliationsComponent implements OnInit, OnDestroy { this.routeData = this.activatedRoute.data.subscribe((data) => { this.page = data['queryParams'] ? data['queryParams'].page : 1 this.ascending = data['queryParams'] ? data['queryParams'].page.sort.split(',')[1] : true - this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'id' + this.sortColumn = data['queryParams'] ? data['queryParams'].page.sort.split(',')[0] : 'email' this.loadAll() }) }