Browse Source

Use less expensive query for counting logs

pull/358/head
Paul Robert Lloyd 3 years ago
parent
commit
639e01c847
  1. 2
      app/views/case_logs/_log_list.html.erb

2
app/views/case_logs/_log_list.html.erb

@ -1,6 +1,6 @@
<figure class="app-figure">
<figcaption id="<%= title.dasherize %>" class="app-figure__caption">
<b><%= case_logs.count %></b> <%= title.downcase %>
<b><%= case_logs.size %></b> <%= title.downcase %>
</figcaption>
<div class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<table class="govuk-table">

Loading…
Cancel
Save