diff --git a/app/presenters/publication_presenter.rb b/app/presenters/publication_presenter.rb index 7163c134d..10643a3c3 100644 --- a/app/presenters/publication_presenter.rb +++ b/app/presenters/publication_presenter.rb @@ -21,7 +21,7 @@ def documents docs.each do |doc| doc["type"] = "html" unless doc["content_type"] doc["type"] = "external" if doc["attachment_type"] == "external" - doc["preview_url"] = "#{doc['url']}/preview" + doc["preview_url"] = "#{doc['url']}/preview" if doc["preview_url"] doc["alternative_format_contact_email"] = nil if doc["accessible"] == true end end