mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
slice instead of pop folders
This commit is contained in:
@@ -137,9 +137,9 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
|
||||
async load() {
|
||||
await super.load(false);
|
||||
await this.loadCiphers();
|
||||
if (this.showNoFolderCiphers) {
|
||||
if (this.showNoFolderCiphers && this.folders.length > 0) {
|
||||
// Remove "No Folder" from folder listing
|
||||
this.folders.pop();
|
||||
this.folders = this.folders.slice(0, this.folders.length - 1);
|
||||
}
|
||||
|
||||
super.loaded = true;
|
||||
|
||||
Reference in New Issue
Block a user