From 03f7bdc27626a2b72e4c957f8842e4df4489683d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Barbeau?= Date: Wed, 20 Jan 2021 16:52:13 -0500 Subject: [PATCH] fix(entity-table): fix paginator undefined --- .../src/lib/entity/entity-table/entity-table.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/common/src/lib/entity/entity-table/entity-table.component.ts b/packages/common/src/lib/entity/entity-table/entity-table.component.ts index 977c2191eb..091ae9d7f8 100644 --- a/packages/common/src/lib/entity/entity-table/entity-table.component.ts +++ b/packages/common/src/lib/entity/entity-table/entity-table.component.ts @@ -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; }