1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

[EC-1053] Combined 'queryParams' subscriptions to be fired in order to use syncService first (#4607)

This commit is contained in:
Rui Tomé
2023-01-31 12:53:07 +00:00
committed by GitHub
parent 5ea111b148
commit 25d89f36a3

View File

@@ -131,12 +131,7 @@ export class VaultComponent implements OnInit, OnDestroy {
await this.editCipher(cipherView); await this.editCipher(cipherView);
} }
}), }),
takeUntil(this.destroy$) switchMap(() => this.route.queryParams),
)
.subscribe();
this.route.queryParams
.pipe(
switchMap(async (params) => { switchMap(async (params) => {
const cipherId = getCipherIdFromParams(params); const cipherId = getCipherIdFromParams(params);
if (cipherId) { if (cipherId) {