PM-12678 update org vault so user not blocked after edit item(#11261)

This commit is contained in:
Jason Ng 2024-09-26 16:25:27 -04:00 committed by GitHub
parent 46f62b6dd5
commit 069ed80eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -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),