mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
slice out none folder instead of splice as to not pollute cache
This commit is contained in:
parent
95ab611595
commit
42c28ac0d1
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user