Skip to content

Commit

Permalink
filter NEES experiments to ensure we only show valid DOIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Rosenberg committed Aug 16, 2023
1 parent 78a0a39 commit 7d79364
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class NeesDoiListCtrl {

$onInit() {
this.project = this.resolve.project;
this.experimentDois = this.project.metadata.experiments.map((exp)=> {
this.experimentDois = this.project.metadata.experiments.filter(exp => !!exp.doi).map((exp)=> {
const authors = (exp.creators ? exp.creators.map((author) => `${author.lastName}, ${author.firstName}`).join('; ') : '')
const year = exp.endDate.split('T')[0].split('-')[0];
const doi = exp.doi;
Expand Down

0 comments on commit 7d79364

Please sign in to comment.