Skip to content

Commit

Permalink
💄 Only render container div if there are rows
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Oct 31, 2023
1 parent d272f43 commit ad11a17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/formio/templates/editGrid.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="openforms-editgrid">
{% if(ctx.rows.length) { %}
<div>
{% ctx.rows.forEach(function(row, rowIndex) { %}
<div class="utrecht-form-fieldset openforms-editgrid__item">
Expand Down Expand Up @@ -39,6 +40,7 @@

{% }) %}
</div>
{% } %}

{% if (!ctx.readOnly && ctx.hasAddButton) { %}
<p class="utrecht-button-group">
Expand Down

0 comments on commit ad11a17

Please sign in to comment.