Browse Source

Merge pull request #19467 from abpframework/auto-merge/rel-8-1/2617

Merge branch dev with rel-8.1
pull/19470/head
maliming 3 years ago
committed by GitHub
parent
commit
884cfc52ec
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/directives/ngx-datatable-list.directive.ts

2
npm/ng-packs/packages/theme-shared/src/lib/directives/ngx-datatable-list.directive.ts

@ -102,7 +102,7 @@ export class NgxDatatableListDirective implements OnChanges, OnInit, DoCheck {
} }
protected refreshPageIfDataExist() { protected refreshPageIfDataExist() {
if (this.table.rows.length < 1 && this.table.count > 0) { if (this.table.rows?.length < 1 && this.table.count > 0) {
let maxPage = Math.floor(Number(this.table.count / this.list.maxResultCount)); let maxPage = Math.floor(Number(this.table.count / this.list.maxResultCount));
if (this.table.count < this.list.maxResultCount) { if (this.table.count < this.list.maxResultCount) {

Loading…
Cancel
Save