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