X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fb79ddbedcc8c459daccaa6eec05b07206865bae..c2a861d06b51978847a02369e673eb1288ada1ee:/apps/workbench/app/views/projects/_show_dashboard.html.erb diff --git a/apps/workbench/app/views/projects/_show_dashboard.html.erb b/apps/workbench/app/views/projects/_show_dashboard.html.erb index 3be8e374a2..00780c4089 100644 --- a/apps/workbench/app/views/projects/_show_dashboard.html.erb +++ b/apps/workbench/app/views/projects/_show_dashboard.html.erb @@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0 %> preload_objects_for_dataclass(Container, recent_cr_containers) if recent_cr_containers.andand.any? # fetch children of all the active crs in one call, if there are any - active_crs = recent_crs.each {|cr| cr if (cr.priority > 0 and cr.state != 'Final' and cr.container_uuid)} + active_crs = recent_crs.each {|cr| cr if (cr.priority.andand > 0 and cr.state != 'Final' and cr.container_uuid)} active_cr_uuids = active_crs.map(&:uuid) active_cr_containers = active_crs.map {|cr| cr.container_uuid}.compact.uniq cr_children = {}