Skip to content

Commit

Permalink
Use assay_streams method instead of select statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Feb 1, 2024
1 parent 14089f6 commit 6fdd31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/treeview_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def build_tree_data
@project.investigations.map do |investigation|
if investigation.is_isa_json_compliant?
investigation.studies.map do |study|
assay_stream_items = study.assays.select { |assay| assay.is_assay_stream? }.map do |assay_stream|
assay_stream_items = study.assay_streams.map do |assay_stream|
assay_items = assay_stream.child_assays.map do |child_assay|
build_assay_item(child_assay)
end
Expand Down

0 comments on commit 6fdd31f

Please sign in to comment.