Skip to content

Commit

Permalink
πŸ› Add a reject for publication_status
Browse files Browse the repository at this point in the history
There seems to be a bigger issue going on where some fields are getting
`['']` as a value.  This is a quick fix to prevent the view from bugging
out when it encounters this.
  • Loading branch information
kirkkwang committed Aug 19, 2024
1 parent 598f02f commit 7e6badb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/records/show_fields/_publication_status.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<% ps_service = AuthorityService::PublicationStatusesService.new %>
<%= record.publication_status.map { |ps| ps_service.label(ps) }.join('<br />').html_safe %>
<%= record.publication_status.reject(&:blank?).map { |ps| ps_service.label(ps) }.join('<br />').html_safe %>

0 comments on commit 7e6badb

Please sign in to comment.