1
0
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:
Kyle Spearrin 2016-09-22 14:37:06 -04:00
parent 95ab611595
commit 42c28ac0d1

View File

@ -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;
});
}