refactor: stop checking if list SimpleChange exists

pull/4216/head
Arman Ozak 5 years ago
parent ccec52c008
commit 707b4ef08d

@ -27,7 +27,7 @@ export class NgxDatatableListDirective implements OnChanges, OnDestroy, OnInit {
}
ngOnChanges({ list }: SimpleChanges) {
if (!(list && list.firstChange)) return;
if (!list.firstChange) return;
const { maxResultCount, page } = list.currentValue;
this.table.limit = maxResultCount;

Loading…
Cancel
Save