From 069ed80eed6bbb88e1d4fa51ee2eca8a8ea17471 Mon Sep 17 00:00:00 2001 From: Jason Ng Date: Thu, 26 Sep 2024 16:25:27 -0400 Subject: [PATCH] PM-12678 update org vault so user not blocked after edit item(#11261) --- apps/web/src/app/vault/org-vault/vault.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/vault/org-vault/vault.component.ts b/apps/web/src/app/vault/org-vault/vault.component.ts index 31f981b489..2976bfc8c2 100644 --- a/apps/web/src/app/vault/org-vault/vault.component.ts +++ b/apps/web/src/app/vault/org-vault/vault.component.ts @@ -27,6 +27,7 @@ import { switchMap, takeUntil, tap, + withLatestFrom, } from "rxjs/operators"; import { @@ -476,15 +477,13 @@ export class VaultComponent implements OnInit, OnDestroy { firstSetup$ .pipe( - switchMap(() => - combineLatest([this.route.queryParams, allCipherMap$, allCollections$, organization$]), - ), + switchMap(() => this.route.queryParams), + withLatestFrom(allCipherMap$, allCollections$, organization$), switchMap(async ([qParams, allCiphersMap, allCollections]) => { const cipherId = getCipherIdFromParams(qParams); if (!cipherId) { return; } - const cipher = allCiphersMap[cipherId]; const cipherCollections = allCollections.filter((c) => cipher.collectionIds.includes(c.id),