1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-08 05:47:50 +02: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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