Skip to content

Commit

Permalink
Remove duplicates from HTP attribution list
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Oct 26, 2023
1 parent b5a6ef9 commit d851364
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/reference-details/reference-details.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ export class ReferenceDetailsComponent implements OnInit {

for (const curator of this.refDetails.annotation_file_curators) {
if (curator.community_curator) {
this.communityFileCuratorList.push(curator);

if (this.communityFileCuratorList.filter(existingCurator => {
return existingCurator.name === curator.name;
}).length == 0) {
this.communityFileCuratorList.push(curator);
}
} else {
if (this.appConfig.show_names_of_staff_file_curators) {
this.adminFileCuratorList.push(curator);
Expand Down

0 comments on commit d851364

Please sign in to comment.