Skip to content

Commit

Permalink
Remove redundant formatting of percentage column
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Apr 30, 2020
1 parent 5887c97 commit 8f8beb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/vis_type_table/public/agg_table/agg_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function addPercentageCol(columns, title, rows, insertAtIndex) {
formatter,
});
const newRows = rows.map(row => ({
[newId]: formatter.convert(row[id] / sumTotal / 100),
[newId]: row[id] / sumTotal,
...row,
}));

Expand Down

0 comments on commit 8f8beb0

Please sign in to comment.