Skip to content

Commit

Permalink
Don't output an empty ul if 0 items provided
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhorsford authored Mar 28, 2019
1 parent 5dc0c1c commit f0df010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/summary-list/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<dd class="govuk-summary-list__actions {%- if row.actions.classes %} {{ row.actions.classes }}{% endif %}">
{% if row.actions.items.length == 1 %}
{{ _actionLink(row.actions.items[0]) | indent(12) | trim }}
{% else %}
{% elseif row.actions.items.length > 1 %}
<ul class="govuk-summary-list__actions-list">
{% for action in row.actions.items %}
<li class="govuk-summary-list__actions-list-item">
Expand Down

0 comments on commit f0df010

Please sign in to comment.