diff --git a/app/views/protocol_importers/templates/_details.html.erb b/app/views/protocol_importers/templates/_details.html.erb
index a47f11402..99b88b066 100644
--- a/app/views/protocol_importers/templates/_details.html.erb
+++ b/app/views/protocol_importers/templates/_details.html.erb
@@ -2,7 +2,7 @@
<% if item[:details]&.any? %>
<%= t('protocol_importers.templates.details.title')%>:
- <% item[:details]&.compact.each do |k, v| %>
+ <% item[:details].reject { |_,v| v.blank? }.each do |k, v| %>
<%= "#{k.humanize}: #{v.to_s}" %>
<% end %>