We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4f8bc5 commit fd466a6Copy full SHA for fd466a6
app/presenters/publication_presenter.rb
@@ -21,7 +21,7 @@ def documents
21
docs.each do |doc|
22
doc["type"] = "html" unless doc["content_type"]
23
doc["type"] = "external" if doc["attachment_type"] == "external"
24
- doc["preview_url"] = "#{doc['url']}/preview"
+ doc["preview_url"] = "#{doc['url']}/preview" if doc["preview_url"]
25
doc["alternative_format_contact_email"] = nil if doc["accessible"] == true
26
end
27
0 commit comments