mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
slice instead of pop folders
This commit is contained in:
@@ -15,11 +15,14 @@ import { FolderService } from 'jslib/abstractions/folder.service';
|
||||
export class FoldersComponent implements OnInit {
|
||||
folders: FolderView[];
|
||||
|
||||
constructor(private folderService: FolderService, private router: Router) {
|
||||
}
|
||||
constructor(private folderService: FolderService, private router: Router) { }
|
||||
|
||||
async ngOnInit() {
|
||||
this.folders = await this.folderService.getAllDecrypted();
|
||||
// Remove "No Folder"
|
||||
if (this.folders.length > 0) {
|
||||
this.folders = this.folders.slice(0, this.folders.length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
folderSelected(folder: FolderView) {
|
||||
|
||||
Reference in New Issue
Block a user