mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
remove unneeded rxjs filter (#17165)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
// @ts-strict-ignore
|
// @ts-strict-ignore
|
||||||
import { Component, OnDestroy, OnInit } from "@angular/core";
|
import { Component, OnDestroy, OnInit } from "@angular/core";
|
||||||
import { ActivatedRoute } from "@angular/router";
|
import { ActivatedRoute } from "@angular/router";
|
||||||
import { concatMap, filter, firstValueFrom, lastValueFrom, map, switchMap, takeUntil } from "rxjs";
|
import { concatMap, firstValueFrom, lastValueFrom, map, switchMap, takeUntil } from "rxjs";
|
||||||
|
|
||||||
import { OrganizationUserApiService } from "@bitwarden/admin-console/common";
|
import { OrganizationUserApiService } from "@bitwarden/admin-console/common";
|
||||||
import { UserNamePipe } from "@bitwarden/angular/pipes/user-name.pipe";
|
import { UserNamePipe } from "@bitwarden/angular/pipes/user-name.pipe";
|
||||||
@@ -143,7 +143,6 @@ export class EventsComponent extends BaseEventsComponent implements OnInit, OnDe
|
|||||||
getUserId,
|
getUserId,
|
||||||
switchMap((userId) => this.providerService.get$(this.organization.providerId, userId)),
|
switchMap((userId) => this.providerService.get$(this.organization.providerId, userId)),
|
||||||
map((provider) => provider != null && provider.canManageUsers),
|
map((provider) => provider != null && provider.canManageUsers),
|
||||||
filter((result) => result),
|
|
||||||
switchMap(() => this.apiService.getProviderUsers(this.organization.id)),
|
switchMap(() => this.apiService.getProviderUsers(this.organization.id)),
|
||||||
map((providerUsersResponse) =>
|
map((providerUsersResponse) =>
|
||||||
providerUsersResponse.data.forEach((u) => {
|
providerUsersResponse.data.forEach((u) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user