From fa5da3585373e8656006f02fabdac5f2c4e6e214 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 3 Aug 2021 12:54:41 +0300 Subject: [PATCH] Fix a bug with users search --- dashboard/users/role-users/role-users.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dashboard/users/role-users/role-users.component.ts b/dashboard/users/role-users/role-users.component.ts index cf3d9bd7..3096cc6f 100644 --- a/dashboard/users/role-users/role-users.component.ts +++ b/dashboard/users/role-users/role-users.component.ts @@ -151,16 +151,16 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges { } get currentActivePage(): any[] { - if (this.active) { - return this.active.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize); + if (this.showActive) { + return this.showActive.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize); } else { return []; } } get currentPendingPage(): any[] { - if (this.pending) { - return this.pending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize); + if (this.showPending) { + return this.showPending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize); } else { return []; }