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:
@@ -28,7 +28,7 @@ h1 = @exercise_collection
|
||||
|
||||
h4.mt-4 = t('activerecord.attributes.exercise_collections.exercises')
|
||||
.table-responsive#exercise-list
|
||||
table.table.sortable
|
||||
table.table class="#{@exercise_collection.items.present? ? 'sortable' : ''}"
|
||||
thead
|
||||
tr
|
||||
th = '#'
|
||||
|
Reference in New Issue
Block a user