PM-12678 update org vault so user not blocked after edit item(#11261)
This commit is contained in:
parent
46f62b6dd5
commit
069ed80eed
|
@ -27,6 +27,7 @@ import {
|
||||||
switchMap,
|
switchMap,
|
||||||
takeUntil,
|
takeUntil,
|
||||||
tap,
|
tap,
|
||||||
|
withLatestFrom,
|
||||||
} from "rxjs/operators";
|
} from "rxjs/operators";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -476,15 +477,13 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
firstSetup$
|
firstSetup$
|
||||||
.pipe(
|
.pipe(
|
||||||
switchMap(() =>
|
switchMap(() => this.route.queryParams),
|
||||||
combineLatest([this.route.queryParams, allCipherMap$, allCollections$, organization$]),
|
withLatestFrom(allCipherMap$, allCollections$, organization$),
|
||||||
),
|
|
||||||
switchMap(async ([qParams, allCiphersMap, allCollections]) => {
|
switchMap(async ([qParams, allCiphersMap, allCollections]) => {
|
||||||
const cipherId = getCipherIdFromParams(qParams);
|
const cipherId = getCipherIdFromParams(qParams);
|
||||||
if (!cipherId) {
|
if (!cipherId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const cipher = allCiphersMap[cipherId];
|
const cipher = allCiphersMap[cipherId];
|
||||||
const cipherCollections = allCollections.filter((c) =>
|
const cipherCollections = allCollections.filter((c) =>
|
||||||
cipher.collectionIds.includes(c.id),
|
cipher.collectionIds.includes(c.id),
|
||||||
|
|
Loading…
Reference in New Issue