Browse Source

Fixed infinite loop error with wrong server side pagination metadata

zhixin 4 years ago
parent
commit
c0b1e897b5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bootstrap-table.js

+ 1 - 0
src/bootstrap-table.js

@@ -1943,6 +1943,7 @@ class BootstrapTable {
 
 
         if (
         if (
           this.options.sidePagination === 'server' &&
           this.options.sidePagination === 'server' &&
+          this.options.pageNumber > 1 &&
           res[this.options.totalField] > 0 &&
           res[this.options.totalField] > 0 &&
           !res[this.options.dataField].length
           !res[this.options.dataField].length
         ) {
         ) {