diff --git a/app/views/admin/universal_tables/show.html.erb b/app/views/admin/universal_tables/show.html.erb index 868bd46..611df79 100644 --- a/app/views/admin/universal_tables/show.html.erb +++ b/app/views/admin/universal_tables/show.html.erb @@ -27,7 +27,7 @@ - <% can_edit = can_edit_or_delete?(@entries.first.u_table) %> + <% can_edit = can_edit_or_delete?(@entries.first.u_table) if !(@entries.first.nil?) %> <% @entries.each do |entry| %> <% @columns.each_with_index do |column, index| %>