user listing fix
This commit is contained in:
parent
4253727f8e
commit
a056c8fd1d
|
@ -50,13 +50,19 @@ export class UserListingFiltersComponent extends BaseComponent implements OnInit
|
|||
}
|
||||
|
||||
protected applyFilters(): void {
|
||||
const { isActive, like, userRoleSubQuery } = this.internalFilters ?? {}
|
||||
this.filterChange.emit({
|
||||
const { isActive, like, userRoleSubQuery } = this.internalFilters ?? {};
|
||||
let filter = {
|
||||
...this.filter,
|
||||
like,
|
||||
isActive: isActive ? [IsActive.Active] : [IsActive.Inactive],
|
||||
userRoleSubQuery
|
||||
})
|
||||
}
|
||||
if (userRoleSubQuery && userRoleSubQuery.roles != null && userRoleSubQuery.roles.length > 0) {
|
||||
filter = {
|
||||
...filter,
|
||||
userRoleSubQuery
|
||||
}
|
||||
}
|
||||
this.filterChange.emit(filter);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue