Skip to content

Commit

Permalink
In case @assay does not have an assay stream
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Mar 25, 2024
1 parent 01ff4c8 commit 89e5b01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/views/assays/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,16 @@
<b>Child assays:</b>
<ul>
<% @assay.child_assays.map do |ca| %>
<% unless @assay.child_assays.blank? %>
<li>
<%= link_to ca.title, ca %>
</li>
<% end %>
<% end %>
</ul>
</p>
<% else %>
<p id="assay_stream">
<b><%= t('assays.assay_stream') %>: </b>
<%= link_to @assay.assay_stream.title, @assay.assay_stream %>
<%= link_to @assay.assay_stream.title, @assay.assay_stream if @assay.assay_stream %>
</p>
<% end %>
<% end %>
Expand Down

0 comments on commit 89e5b01

Please sign in to comment.