Skip to content

Commit

Permalink
fix: Add missing private orcid id in sorting method an invert selfAss…
Browse files Browse the repository at this point in the history
…erted and validated in sort by source
  • Loading branch information
DanielPalafox committed Oct 25, 2023
1 parent fe068eb commit 1768f79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export class AffiliationsSortService {
'validated'
)
x.affiliationGroup = ascending
? [...selfAsserted, ...validated]
: [...validated, ...selfAsserted]
? [...validated, ...selfAsserted]
: [...selfAsserted, ...validated]
}
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export class AffiliationStacksGroupsComponent implements OnInit {

sortEvent(event: SortData, type: string) {
this.userRecordContext.publicRecordId = this.isPublicRecord
this.userRecordContext.privateRecordId = this.userRecord?.userInfo?.EFFECTIVE_USER_ORCID
this.userRecordContext.sort = event.type
this.userRecordContext.sortAsc = event.direction === 'asc'
this._recordAffiliationService.changeUserRecordContext(
Expand Down

0 comments on commit 1768f79

Please sign in to comment.