mirror of
https://github.com/bitwarden/jslib
synced 2025-12-06 00:03:29 +00:00
Remove duplicate calls to init folders and collections
This commit is contained in:
@@ -45,14 +45,10 @@ export class VaultFilterComponent implements OnInit {
|
||||
this.activeSingleOrganizationPolicy =
|
||||
await this.vaultFilterService.checkForSingleOrganizationPolicy();
|
||||
}
|
||||
this.folders = await this.vaultFilterService.buildFolders();
|
||||
this.collections = await this.initCollections();
|
||||
this.isLoaded = true;
|
||||
}
|
||||
|
||||
// overwritten in web for organization vaults
|
||||
async initCollections() {
|
||||
return await this.vaultFilterService.buildCollections();
|
||||
// The VaultComponents call reloadCollectionsAndFolders during their initialization,
|
||||
// no need to initialize collections and folders here
|
||||
this.isLoaded = true;
|
||||
}
|
||||
|
||||
async toggleFilterNodeCollapseState(node: ITreeNodeObject) {
|
||||
|
||||
Reference in New Issue
Block a user