Skip to content

Commit

Permalink
Merge pull request #3586 from katafrakt/remove-unneded-db-query
Browse files Browse the repository at this point in the history
Check if promotions exist without extra db query
  • Loading branch information
aldesantis authored Apr 19, 2020
2 parents 0bdb5b9 + 730d5a3 commit 81d3090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/promotions/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<%= paginate @promotions, theme: "solidus_admin" %>

<% if @promotions.any? %>
<% if @promotions.length > 0 %>
<table class="index">
<thead>
<tr>
Expand Down

0 comments on commit 81d3090

Please sign in to comment.