修復錯誤

This commit is contained in:
chiu 2023-06-12 15:37:32 +00:00
parent 3459ddff38
commit efce37b471
1 changed files with 1 additions and 1 deletions

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