Skip to content

Commit

Permalink
Fix missing customization_templates list
Browse files Browse the repository at this point in the history
We were checking two different keys in the `data` hash, first was simply
a typo.

The result was that there were never any customization_templates being
displayed.
  • Loading branch information
agrare committed Oct 18, 2023
1 parent 9eb0670 commit e0b6da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/request_info_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def prov_template_data(data)
edit = data[:edit]
headers, count = prov_grid_header(edit, data[:type])
rows = [prov_row_item(data[:none_index], none_cells(count))]
if data[:template]
if data[:templates]
rows += data[:templates].map do |template|
prov_row_item(template.id.to_s, prov_template_cells(template))
end
Expand Down

0 comments on commit e0b6da3

Please sign in to comment.