From 25d89f36a3e74e98eb279d17d388f554f1617400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Tom=C3=A9?= <108268980+r-tome@users.noreply.github.com> Date: Tue, 31 Jan 2023 12:53:07 +0000 Subject: [PATCH] [EC-1053] Combined 'queryParams' subscriptions to be fired in order to use syncService first (#4607) --- apps/web/src/app/vault/vault.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/web/src/app/vault/vault.component.ts b/apps/web/src/app/vault/vault.component.ts index ca0d93cf4c..e6764c14be 100644 --- a/apps/web/src/app/vault/vault.component.ts +++ b/apps/web/src/app/vault/vault.component.ts @@ -131,12 +131,7 @@ export class VaultComponent implements OnInit, OnDestroy { await this.editCipher(cipherView); } }), - takeUntil(this.destroy$) - ) - .subscribe(); - - this.route.queryParams - .pipe( + switchMap(() => this.route.queryParams), switchMap(async (params) => { const cipherId = getCipherIdFromParams(params); if (cipherId) {