Skip to content

Commit

Permalink
fix(entity-table): fix paginator undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Jan 20, 2021
1 parent fb18e82 commit 03f7bdc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export class EntityTableComponent implements OnInit, OnChanges, OnDestroy {

if (
this.paginator &&
firstSelectedStateviewPosition < pageMin ||
firstSelectedStateviewPosition >= pageMax) {
(firstSelectedStateviewPosition < pageMin ||
firstSelectedStateviewPosition >= pageMax)) {
const pageToReach = Math.floor(firstSelectedStateviewPosition / this.paginator.pageSize);
this.dataSource.paginator.pageIndex = pageToReach;
}
Expand Down

0 comments on commit 03f7bdc

Please sign in to comment.