Changes
Fix stat column headers
local stat_columns = {}
local stat_columns = {}
for _, column in ipairs(self._stat_columns) do
for _, column in ipairs(self._stat_columns) do
if not self._shown_stats[column] then
if self._shown_stats[column] then
table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column], caption = Formatting:format_stat_name(column)}})
else
for _, row_values in ipairs(data_rows) do
for _, row_values in ipairs(data_rows) do
row_values[column] = nil
row_values[column] = nil