From 6fdd31fee6dcd2095187536a0d6204b035943065 Mon Sep 17 00:00:00 2001 From: Kevin De Pelseneer Date: Thu, 1 Feb 2024 10:12:05 +0100 Subject: [PATCH] Use assay_streams method instead of select statement --- lib/treeview_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/treeview_builder.rb b/lib/treeview_builder.rb index 3996b2da2b..6f89ddf2d3 100644 --- a/lib/treeview_builder.rb +++ b/lib/treeview_builder.rb @@ -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