From 3bca05fc94181aa9928b7f186b83a1cd40fc904f Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Thu, 18 Feb 2021 12:00:51 +0100 Subject: [PATCH] Prevent showing empty files for experiments without Tasks SCI-5481 --- .../projects/show/_experiment_workflow_image_container.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/show/_experiment_workflow_image_container.html.erb b/app/views/projects/show/_experiment_workflow_image_container.html.erb index a1107ee0e..6daf6e3e5 100644 --- a/app/views/projects/show/_experiment_workflow_image_container.html.erb +++ b/app/views/projects/show/_experiment_workflow_image_container.html.erb @@ -2,7 +2,7 @@
-<% else %> +<% elsif experiment.my_modules.active.any? %> <% if experiment.workflowimg.attached? %>
<%= render partial: 'projects/show/workflow_img.html.erb', locals: { experiment: experiment } %>