Fix a bug with users search

This commit is contained in:
Konstantinos Triantafyllou 2021-08-03 12:54:41 +03:00
parent 25ea02d4a0
commit fa5da35853
1 changed files with 4 additions and 4 deletions

View File

@ -151,16 +151,16 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges {
} }
get currentActivePage(): any[] { get currentActivePage(): any[] {
if (this.active) { if (this.showActive) {
return this.active.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize); return this.showActive.slice((this.activePage - 1) * this.pageSize, this.activePage * this.pageSize);
} else { } else {
return []; return [];
} }
} }
get currentPendingPage(): any[] { get currentPendingPage(): any[] {
if (this.pending) { if (this.showPending) {
return this.pending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize); return this.showPending.slice((this.pendingPage - 1) * this.pageSize, this.pendingPage * this.pageSize);
} else { } else {
return []; return [];
} }