mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
slice out none folder instead of splice as to not pollute cache
This commit is contained in:
@@ -10,10 +10,13 @@
|
||||
foldersPromise.then(function (folders) {
|
||||
if (folders.length > 0 && folders[0].id === null) {
|
||||
// remove the "none" folder
|
||||
folders.splice(0, 1);
|
||||
$scope.folders = folders.slice(1);
|
||||
}
|
||||
else {
|
||||
$scope.folders = folders;
|
||||
}
|
||||
|
||||
$scope.loaded = true;
|
||||
$scope.folders = folders;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user