Disable sorttable on tables without rows
Otherwise, the first element of the table body is being fetched which might result in an error for empty tables. Fixes CODEOCEAN-JZ
This commit is contained in:
@@ -7,7 +7,7 @@ h1 = t('.title')
|
||||
|
||||
- if submissions.any?
|
||||
.table-responsive
|
||||
table.table.table-striped.sortable
|
||||
table.table.table-striped class="#{exercises.present? ? 'sortable' : ''}"
|
||||
thead
|
||||
tr
|
||||
th.header = t('.exercise')
|
||||
|
Reference in New Issue
Block a user