mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Made allCiphers$ depend on the refresh subject$ (#11225)
This commit is contained in:
@@ -318,8 +318,8 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
shareReplay({ refCount: true, bufferSize: 1 }),
|
shareReplay({ refCount: true, bufferSize: 1 }),
|
||||||
);
|
);
|
||||||
|
|
||||||
const allCiphers$ = organization$.pipe(
|
const allCiphers$ = combineLatest([organization$, this.refresh$]).pipe(
|
||||||
concatMap(async (organization) => {
|
switchMap(async ([organization]) => {
|
||||||
// If user swaps organization reset the addAccessToggle
|
// If user swaps organization reset the addAccessToggle
|
||||||
if (!this.showAddAccessToggle || organization) {
|
if (!this.showAddAccessToggle || organization) {
|
||||||
this.addAccessToggle(0);
|
this.addAccessToggle(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user