5365: add back data-toggle along with link disabled for Log tab.
[arvados.git] / apps / workbench / app / helpers / pipeline_instances_helper.rb
index 238082a33baa1bd5953e1496dc05c13a0fbaca37..b0d5216efd1588069050d5b0d5aa371abc07492d 100644 (file)
@@ -89,9 +89,9 @@ module PipelineInstancesHelper
       c[:job][:uuid] if c.is_a?(Hash) and c[:job].is_a?(Hash)
     }.compact
     job = {}
-    jobuuids.each do |jobuuid|
-      job[jobuuid] = Job.find?(jobuuid)
-    end.compact
+    Job.where(uuid: jobuuids).each do |j|
+      job[j[:uuid]] = j
+    end
 
     object.components.each do |cname, c|
       i += 1