From 0017e49656e63d6ff348d54a61c0dcdffa74db9a Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 5 Feb 2014 12:29:13 -0800 Subject: [PATCH] Fix handling of pipeline components with no job/output yet. refs #1977 --- .../app/controllers/pipeline_instances_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/workbench/app/controllers/pipeline_instances_controller.rb b/apps/workbench/app/controllers/pipeline_instances_controller.rb index 4798271109..49f2a80e9d 100644 --- a/apps/workbench/app/controllers/pipeline_instances_controller.rb +++ b/apps/workbench/app/controllers/pipeline_instances_controller.rb @@ -13,7 +13,7 @@ class PipelineInstancesController < ApplicationController collections = [] p.components.each do |k, v| - j = v[:job] + j = v[:job] || next uuid = j[:uuid].intern provenance[uuid] = j @@ -31,7 +31,7 @@ class PipelineInstancesController < ApplicationController pips[uuid] |= n end - Collection.where(uuid: collections).each do |c| + Collection.where(uuid: collections.compact).each do |c| uuid = c.uuid.intern provenance[uuid] = c pips[uuid] = 0 unless pips[uuid] != nil -- 2.30.2