Skip to content

Commit

Permalink
Revert of #1174
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrn committed Nov 8, 2019
1 parent 01e9ced commit fecb998
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/utils/data-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ export default class DataManager {
this.selectedCount = 0;

this.data = data.map((row, index) => {
const localRow = {
...row,
tableData: { ...row.tableData, id: index }
};
if (localRow.tableData.checked) {
row.tableData = { ...row.tableData, id: index };
if (row.tableData.checked) {
this.selectedCount++;
}
return localRow;
return row;
});

this.filtered = false;
Expand Down

0 comments on commit fecb998

Please sign in to comment.