diff --git a/app/views/shared/ubiquity/search_display/_show_array_hash.html.erb b/app/views/shared/ubiquity/search_display/_show_array_hash.html.erb index dfae83f74..1e03d190a 100644 --- a/app/views/shared/ubiquity/search_display/_show_array_hash.html.erb +++ b/app/views/shared/ubiquity/search_display/_show_array_hash.html.erb @@ -1,4 +1,4 @@ -<% array_size = (array_of_hash.size <= 5 ? array_of_hash.size - 1 : 4) %> +<% array_size = (array_of_hash&.size <= 5 ? array_of_hash.size - 1 : 4) %> <% array_of_hash.each_with_index do |hash, index| %> <% if index <= 4 %> @@ -56,4 +56,4 @@ <% end %> <% end %> -<% end %> \ No newline at end of file +<% end %>