1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

[fix] Rename skipFilterCollectionRefresh to firstLoaded

This commit is contained in:
addison
2022-06-02 13:02:42 -04:00
parent 3c0d78c61c
commit 2af429249c

View File

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