From 2af429249c140d0569cdb78e43bc5f47d3b2ff66 Mon Sep 17 00:00:00 2001 From: addison Date: Thu, 2 Jun 2022 13:02:42 -0400 Subject: [PATCH] [fix] Rename skipFilterCollectionRefresh to firstLoaded --- .../organization-vault/organization-vault.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts b/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts index ed429908..59d97bf7 100644 --- a/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts +++ b/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts @@ -61,7 +61,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy { // This is a hack to avoid redundant api calls that fetch OrganizationVaultFilterComponent collections // When it makes sense to do so we should leverage some other communication method for change events that isn't directly tied to the query param for organizationId // i.e. exposing the VaultFiltersService to the OrganizationSwitcherComponent to make relevant updates from a change event instead of just depending on the router - skipFilterCollectionRefresh = true; + firstLoaded = true; constructor( private route: ActivatedRoute, @@ -112,10 +112,10 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy { }); } - if (!this.skipFilterCollectionRefresh) { + if (!this.firstLoaded) { await this.vaultFilterComponent.reloadCollectionsAndFolders(); } - this.skipFilterCollectionRefresh = false; + this.firstLoaded = false; await this.ciphersComponent.reload();