1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

Made allCiphers$ depend on the refresh subject$ (#11225)

This commit is contained in:
SmithThe4th
2024-09-24 14:13:27 -04:00
committed by GitHub
parent e3c75b3c1b
commit 3646214a0f

View File

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