mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
code review changes
This commit is contained in:
parent
ab038ffdf7
commit
611c417b43
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue