Skip to content

Commit

Permalink
Merge branch 'upload_samples_through_spreadsheet_single_page' of gith…
Browse files Browse the repository at this point in the history
…ub.com:ELIXIR-Belgium/seek into fairdom_test

Fixed Type in single_pages controller
  • Loading branch information
Kevin De Pelseneer committed Aug 23, 2023
2 parents 58e4365 + 451af95 commit afd3a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/single_pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def upload_samples
sample_fields = samples_sheet.row(1).actual_cells.map { |field| field&.value&.sub(' *', '') }.compact
samples_data = (2..samples_sheet.actual_rows.size).map do |i|
sample_cells = samples_sheet.row(i).cells
sample_cells.map { |cell| cell&.value }.drop(1) unless act_cells.all? { |cell| (cell&.value == '' || cell&.value.nil?) }
sample_cells.map { |cell| cell&.value }.drop(1) unless sample_cells.all? { |cell| (cell&.value == '' || cell&.value.nil?) }
end

samples_data.compact!
Expand Down

0 comments on commit afd3a11

Please sign in to comment.