is handlebars else if instead of nesting ifs
This commit is contained in:
parent
473ec3a903
commit
01a9dcbbb8
1 changed files with 1 additions and 3 deletions
|
@ -15,8 +15,7 @@
|
|||
{{#each (lookup config.i18n 'temporalUnitsAbbr') as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
{{#if (eq unitType 'customTemporal')}}
|
||||
{{else if (eq unitType 'customTemporal')}}
|
||||
{{#each (lookup config.i18n 'customTemporalUnitsAbbr') as |value key|}}
|
||||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
|
@ -25,7 +24,6 @@
|
|||
<option value="{{key}}">{{value}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue