Skip to content

Commit dfeba47

Browse files
Merge pull request #6005 from nhsuk/alistair/fix-import-summary
Show import details even if no records were created
2 parents 7904688 + 070be03 commit dfeba47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/app_import_summary_component.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
<% end %>
4949
<% end %>
5050

51-
<% if import.records_count && import.records_count.positive? %>
51+
<% if import.records_count && import.status == "processed" %>
5252
<% if import.is_a?(ImmunisationImport) && import.type == "national_reporting" %>
5353
<%= summary_list.with_row do |row| %>
5454
<%= row.with_key { "Import summary" } %>
5555
<%= row.with_value { render AppImportStatisticsComponent.new(import: import) } %>
5656
<% end %>
57-
<% else %>
57+
<% elsif import.records_count.positive? %>
5858
<%= summary_list.with_row do |row| %>
5959
<%= row.with_key { "Records" } %>
6060
<%= row.with_value { import.records_count.to_s } %>

0 commit comments

Comments
 (0)