mirror of
https://github.com/bitwarden/jslib
synced 2025-12-15 15:53:51 +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 =
|
this.activeSingleOrganizationPolicy =
|
||||||
await this.vaultFilterService.checkForSingleOrganizationPolicy();
|
await this.vaultFilterService.checkForSingleOrganizationPolicy();
|
||||||
}
|
}
|
||||||
this.folders = await this.vaultFilterService.buildFolders();
|
|
||||||
this.collections = await this.initCollections();
|
|
||||||
this.isLoaded = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// overwritten in web for organization vaults
|
// The VaultComponents call reloadCollectionsAndFolders during their initialization,
|
||||||
async initCollections() {
|
// no need to initialize collections and folders here
|
||||||
return await this.vaultFilterService.buildCollections();
|
this.isLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async toggleFilterNodeCollapseState(node: ITreeNodeObject) {
|
async toggleFilterNodeCollapseState(node: ITreeNodeObject) {
|
||||||
|
|||||||
Reference in New Issue
Block a user