Skip to content

Commit

Permalink
Fix undefined method for nil class error
Browse files Browse the repository at this point in the history
Resolves #368
  • Loading branch information
jvendetti committed Dec 4, 2024
1 parent ce0f013 commit 4f12f61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/ontologies/_metadata.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
%tr
%td Format
%td= @submission_latest.hasOntologyLanguage
- if @submission_latest.naturalLanguage.present?
%tr
%td Language
%td= abbreviations_to_languages(@submission_latest.naturalLanguage).join(", ")
%tr
%td Contact
%td= raw @submission_latest.contact.map {|c| [c.name, c.email].join(", ") if c.member?(:name) && c.member?(:email)}.join("<br/>")
Expand All @@ -49,10 +53,6 @@
%tr
%td Groups
%td= groups.map {|g| groups_hash[g].name}.sort.join(", ")
- unless @submission_latest.naturalLanguage.empty?
%tr
%td Language
%td= abbreviations_to_languages(@submission_latest.naturalLanguage).join(", ")
= raw additional_details

-# Submissions pane
Expand Down

0 comments on commit 4f12f61

Please sign in to comment.