Skip to content

Commit

Permalink
Merge pull request zendesk#3997 from zendesk/grosser/pagy
Browse files Browse the repository at this point in the history
fix projects without stages breaking
  • Loading branch information
grosser authored Feb 16, 2022
2 parents 9674edf + a348db4 commit a49201d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</tr>
</thead>
<tbody>
<% if @stages.any? || @page.page != 1 %>
<% if @stages.any? || @pagy.page != 1 %>
<%
# expire the cache when the project or any of the stages (and their deploy-groups/envs) gets locked
# a little expensive, but better than expiring when anything gets locked (confirmed that it's not doing N+1s)
Expand Down

0 comments on commit a49201d

Please sign in to comment.