Skip to content

Commit

Permalink
fix: cast from/size params #datashare/1425
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jul 4, 2024
1 parent 6830256 commit 1e2f6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ export default {
return this.isDisplayed === noop ? this.total > this.size : this.isDisplayed()
},
size() {
return get(this.getToTemplate(), ['query', this.sizeAttr], 0)
return parseInt(get(this.getToTemplate(), ['query', this.sizeAttr], 0))
},
from() {
return get(this.getToTemplate(), ['query', this.fromAttr], 0)
return parseInt(get(this.getToTemplate(), ['query', this.fromAttr], 0))
},
nextFrom() {
return this.from + this.size
Expand Down

0 comments on commit 1e2f6cf

Please sign in to comment.