@elderbyte/ngx-starter 20.6.0 → 20.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3308,7 +3308,12 @@ class Page {
3308
3308
  this.totalElements = totalElements;
3309
3309
  }
3310
3310
  get totalPages() {
3311
- return Math.ceil(this.totalElements / this.size);
3311
+ if (this.size > 0) {
3312
+ return Math.ceil(this.totalElements / this.size);
3313
+ }
3314
+ else {
3315
+ return 1;
3316
+ }
3312
3317
  }
3313
3318
  get isLast() {
3314
3319
  return this.number >= this.totalPages;