Skip to content

Commit 7cd6c2b

Browse files
committed
Fix list attribute display
1 parent b5d1946 commit 7cd6c2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/helpers/materials_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def display_attribute(resource, attribute, show_label: true, title: nil, markdow
9090
unless value.blank? || value.try(:strip) == 'License Not Specified'
9191
concat content_tag(:strong, "#{title || resource.class.human_attribute_name(attribute)}: ", class: 'text-primary') if show_label
9292
if list
93-
concat content_tag(:ul, value.map { |v| content_tag(:li, v) })
93+
concat content_tag(:ul) { value.each { |v| concat(content_tag(:li, v)) } }
9494
elsif expandable
9595
height_limit = expandable.is_a?(Numeric) ? expandable : nil
9696
concat content_tag(:div, value.to_s, class: 'tess-expandable', 'data-height-limit': height_limit ? height_limit : nil)

0 commit comments

Comments
 (0)