Commit 331bafc9 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

Fix numbering of pages when number of genes is a multiple of item per page

parent 8387a1c3
......@@ -91,7 +91,10 @@ export default {
return Object.keys(this.taxItems).sort();
},
pageTotalNumber() {
return Math.floor(this.count/this.pagination.rowsPerPage) + 1;
if ((this.count % this.pagination.rowsPerPage) > 0) {
return Math.floor(this.count/this.pagination.rowsPerPage) + 1;
}
return Math.floor(this.count/this.pagination.rowsPerPage);
}
},
mounted() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment