Merge branch 'master' into 'master'

Update show.html.erb

fix error when @entries.first is nil

See merge request !1
This commit is contained in:
wmcheng 2019-11-14 19:11:12 +08:00
commit 717b3a6ff0
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
</tr>
</thead>
<tbody>
<% 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| %>
<tr>
<% @columns.each_with_index do |column, index| %>