Browse Source

Remove duplicated Number() convertion

pull/19203/head
Sinan Öztürk 2 years ago
parent
commit
fac19dbdac
  1. 2
      npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.ts

2
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.ts

@ -178,7 +178,7 @@ export class ExtensibleTableComponent<R = any> implements OnChanges {
ngOnChanges({ data, recordsTotal }: SimpleChanges) {
if (data?.currentValue.length < 1 && recordsTotal?.currentValue > 0) {
let maxPage = Math.floor(Number(Number(recordsTotal?.currentValue / this.list.maxResultCount)));
let maxPage = Math.floor(Number(recordsTotal?.currentValue / this.list.maxResultCount));
if(recordsTotal?.currentValue < this.list.maxResultCount) {
this.list.page = 0;

Loading…
Cancel
Save