Skip to content

Commit

Permalink
Added check for missing subgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Dec 29, 2023
1 parent d523c56 commit 9ddd394
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/templates/sprig/element/step_1.twig
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
</div>
{% if elementOptions.subGroup is defined and (settings and settings.group is defined) %}
{% set subGroupSettings = elementOptions.getSubGroup() %}
<div class="field width-50" id="elementType-entry-subfields">
{% if subGroupSettings %}
<div class="field width-50" id="elementType-entry-subfields">
<div class="heading">
<label id="section-label" for="section">{{ subGroupSettings.label|t('exporter') }}<span
class="visually-hidden">Required</span><span class="required"
Expand All @@ -129,7 +130,7 @@
</div>
</div>
</div>

{% endif %}
{% endif %}
</div>
{% endif %}
Expand Down

0 comments on commit 9ddd394

Please sign in to comment.