Skip to content

Commit

Permalink
minor code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Mar 14, 2024
1 parent d335d50 commit 266a73e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/multiple-input-fields/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@
{% from "components/fieldset/_macro.njk" import onsFieldset %}

{% macro onsMultipleInputFields(params) %}
{% if params.numberOfFields > 1 %}
{% set fields %}
{% set fields %}
{% if params.numberOfFields > 1 %}
<div class="ons-field-group">
{{ params.fields | safe }}
</div>
{% endset %}
{% else %}
{% set fields %}
{% else %}
{{ params.fields | safe }}
{% endset %}
{% endif %}
{% endif %}
{% endset %}

{% if params.mutuallyExclusive %}
{% call onsMutuallyExclusive({
Expand Down

0 comments on commit 266a73e

Please sign in to comment.