9318: fixed outputs display issue where "outpus: []" is being shown when there are...
[arvados.git] / apps / workbench / app / views / work_unit / _component_detail.html.erb
index 9ef16d00a8c459f34ac30b8fc93696f2a12c413b..19c7f224f65fd02e5baa8ecb5739e2c740420adc 100644 (file)
@@ -9,7 +9,9 @@
               <% keys << :outputs if @object.uuid == current_obj.uuid %>
               <% keys.each do |k| %>
                 <% val = current_obj.send(k) if current_obj.respond_to?(k) %>
-                <% if val %>
+                <% has_val = val %>
+                <% has_val = val.andand.any? if k == :outputs %>
+                <% if has_val %>
                 <tr>
                   <td style="padding-right: 1em">
                     <%= k.to_s %>: