Skip to content

Commit

Permalink
Merge pull request #1071 from datacite/remove-nil-in-other-related
Browse files Browse the repository at this point in the history
Remove nil from other-related
  • Loading branch information
jrhoads authored Dec 13, 2023
2 parents 6d7767e + 1f01e38 commit f8cacbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/types/doi_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def other_related_count
def get_other_related_ids(_doi)
Event.events_involving(_doi).map do |e|
e.doi
end.flatten.uniq - [_doi.downcase]
end.flatten.uniq - [_doi.downcase, nil]
end


Expand Down

0 comments on commit f8cacbb

Please sign in to comment.