From 4f12f61137063cddf7e34a6bc0caae507438b1c2 Mon Sep 17 00:00:00 2001 From: Jennifer Vendetti Date: Wed, 4 Dec 2024 15:29:20 -0800 Subject: [PATCH] Fix undefined method for nil class error Resolves #368 --- app/views/ontologies/_metadata.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/ontologies/_metadata.html.haml b/app/views/ontologies/_metadata.html.haml index 98c106b5a..c848c7052 100644 --- a/app/views/ontologies/_metadata.html.haml +++ b/app/views/ontologies/_metadata.html.haml @@ -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("
") @@ -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