Skip to content

Commit

Permalink
Showing custom metadata if assay position is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin De Pelseneer committed Oct 9, 2023
1 parent f1a3e5e commit aa11586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/isa_assays/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ input_sample_type_id ||=
show_custom_metadata =
if params[:is_source]
true
elsif !@isa_assay.assay.new_record? && !@isa_assay.assay.custom_metadata.blank?
true
elsif source_assay.position.zero?
true # Custom metadata should be shown in edit as well if assay position is 0.
else
false
end
Expand Down

0 comments on commit aa11586

Please sign in to comment.