Skip to content

Commit

Permalink
fix wrong pagination on grouped rows (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
supersoaker authored Feb 17, 2021
1 parent 119255f commit 91b2d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,14 @@ export default {
totalRowCount() {
let total = 0;
each(this.processedRows, (headerRow) => {
total += headerRow.children ? headerRow.children.length : 0;
total += headerRow.children ? headerRow.children.length : 1;
});
return total;
},
totalPageRowCount() {
let total = 0;
each(this.paginated, (headerRow) => {
total += headerRow.children ? headerRow.children.length : 0;
total += headerRow.children ? headerRow.children.length : 1;
});
return total;
},
Expand Down

0 comments on commit 91b2d4a

Please sign in to comment.