additional filters for blank string when displaying the reagent details

This commit is contained in:
Miha Mencin 2019-07-03 14:13:55 +02:00
parent b709c0ec3c
commit 012b828708

View file

@ -2,7 +2,7 @@
<% if item[:details]&.any? %> <% if item[:details]&.any? %>
<b> <%= t('protocol_importers.templates.details.title')%>: </b> <b> <%= t('protocol_importers.templates.details.title')%>: </b>
<br /> <br />
<% item[:details]&.compact.each do |k, v| %> <% item[:details].reject { |_,v| v.blank? }.each do |k, v| %>
<%= "#{k.humanize}: #{v.to_s}" %> <%= "#{k.humanize}: #{v.to_s}" %>
<br /> <br />
<% end %> <% end %>