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
1 changed files with 5 additions and 2 deletions

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