Skip to content

Commit f06c690

Browse files
Fix bug that skips rendering single contributors
** Why are these changes being introduced: Our rendering of contributors from TIMDEX apparently has a bug that skips rendering anything if there is only one contributor on the record. ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/use-214 ** How does this address that need: This adds an .each call to the .uniq filter that exists, which forces Rails to actually process the single resulting record in the case of a single contributor being present on the record. ** Document any side effects to this change: Hopefully none.
1 parent 77970ca commit f06c690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%= return if contributors.blank? %>
22

3-
<% contributors.uniq do |contributor| %>
3+
<% contributors.uniq.each do |contributor| %>
44
<li><%= link_to contributor['value'], results_path({ advanced: true, contributors: contributor['value'] }) %></li>
55
<% end %>

0 commit comments

Comments
 (0)