Skip to content

Commit

Permalink
handle the case of an ontology with no submission
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 24, 2023
1 parent 4449c84 commit 2ec9e8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
= raw get_link_for_cls_ajax(v, @ontology.acronym, '_blank')
- else
= render ChipButtonComponent.new(text: v, type: "static")
- domains = Array(@ontology.hasDomain) + Array(@submission_latest.hasDomain)
- domains = Array(@ontology&.hasDomain) + Array(@submission_latest&.hasDomain)
- unless domains.empty?
- l.row do
= render FieldContainerComponent.new(label: 'Categories and subjects') do
Expand Down

0 comments on commit 2ec9e8a

Please sign in to comment.