Fix dashboard crash on uncommitted container request.
authorTom Clegg <tclegg@veritasgenetics.com>
Wed, 20 Sep 2017 20:03:53 +0000 (16:03 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Wed, 20 Sep 2017 20:03:53 +0000 (16:03 -0400)
refs #12246

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

apps/workbench/app/views/projects/_show_dashboard.html.erb

index 3be8e374a2977b16ca76b53f3e7de645c4751ea9..00780c4089d00b3bbb5332e115e5de5d88f2f922 100644 (file)
@@ -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 = {}