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[] {
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 [];
}