code review changes

This commit is contained in:
Miha Mencin 2019-07-03 09:21:41 +02:00
parent ab038ffdf7
commit 611c417b43
2 changed files with 3 additions and 3 deletions

View file

@ -115,11 +115,11 @@ module ProtocolImporters
{
type: 'reagent',
name: desc_component[:source][:name],
mol_weight: desc_component[:source][:mol_weight],
details: {
catalog_number: desc_component[:source][:sku],
link: desc_component[:source][:vendor][:link],
linear_formula: desc_component[:source][:linfor]
linear_formula: desc_component[:source][:linfor],
mol_weight: desc_component[:source][:mol_weight]
}
}
when :gotostep

View file

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