Added check if there are any options to display (e.g. options = null).
This commit is contained in:
parent
9643e2f214
commit
405589a293
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
<% for option in @options: %>
|
||||
<li role="presentation" class="js-option" data-value="<%= option.value %>"><%= option.name %>
|
||||
<% if @options: %>
|
||||
<% for option in @options: %>
|
||||
<li role="presentation" class="js-option" data-value="<%= option.value %>"><%= option.name %>
|
||||
<% end %>
|
||||
<% end %>
|
Loading…
Reference in a new issue