From ea49d17c477f01a225ed7014d954f43a53a1b6e2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 15 Aug 2018 22:26:39 -0400 Subject: [PATCH] set search text before load --- src/app/organizations/vault/vault.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organizations/vault/vault.component.ts b/src/app/organizations/vault/vault.component.ts index 0f784df4a82..2ebf2dc1aee 100644 --- a/src/app/organizations/vault/vault.component.ts +++ b/src/app/organizations/vault/vault.component.ts @@ -62,6 +62,7 @@ export class VaultComponent implements OnInit { this.ciphersComponent.organization = this.organization; this.route.queryParams.subscribe(async (qParams) => { + this.ciphersComponent.searchText = this.groupingsComponent.searchText = qParams.search; if (!this.organization.isAdmin) { await this.syncService.fullSync(false); } @@ -84,7 +85,6 @@ export class VaultComponent implements OnInit { } } - this.ciphersComponent.searchText = this.groupingsComponent.searchText = qParams.search; if (qParams.viewEvents != null) { const cipher = this.ciphersComponent.ciphers.filter((c) => c.id === qParams.viewEvents); if (cipher.length > 0) {