修復錯誤

This commit is contained in:
chiu committed 2023-06-12 15:37:32 +00:00
1 parent 3459ddff38
commit efce37b471
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ class TableEntry
if column_entries.nil?
values = self.order_by({field => direction})
else
values = column_entries.map{|v| v.table_entry}
values = column_entries.map{|v| v.table_entry}.compact
values = values.sort_by{|v| v.send(field)}
if direction == 'desc'
values = values.reverse