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:
@@ -17,7 +17,7 @@ h1 = RequestForComment.model_name.human(count: 2)
|
||||
{ class: 'form-control', multiple: true, "data-placeholder": t('request_for_comments.index.study_groups.placeholder') })
|
||||
|
||||
.table-responsive
|
||||
table.table.sortable.mt-4
|
||||
table.table.mt-4 class="#{@request_for_comments.present? ? 'sortable' : ''}"
|
||||
thead
|
||||
tr
|
||||
th
|
||||
|
Reference in New Issue
Block a user