1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

fix removing no folder when showNoFolderCiphers

This commit is contained in:
Kyle Spearrin
2019-06-07 13:20:23 -04:00
parent c5c2318fbe
commit 0bbe17f6e2
3 changed files with 4 additions and 5 deletions

View File

@@ -154,9 +154,9 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
async load() {
await super.load(false);
await this.loadCiphers();
if (this.showNoFolderCiphers && this.folders.length > 0) {
if (this.showNoFolderCiphers && this.nestedFolders.length > 0) {
// Remove "No Folder" from folder listing
this.folders = this.folders.slice(0, this.folders.length - 1);
this.nestedFolders = this.nestedFolders.slice(0, this.nestedFolders.length - 1);
}
super.loaded = true;