1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

index checking

This commit is contained in:
Kyle Spearrin
2016-11-09 21:49:15 -05:00
parent 0050b570b4
commit 3f0ca412c6

View File

@@ -127,7 +127,9 @@
apiService.sites.del({ id: site.id }, function () {
var index = $scope.sites.indexOf(site);
$scope.sites.splice(index, 1);
if (index > -1) {
$scope.sites.splice(index, 1);
}
});
};
@@ -174,7 +176,9 @@
apiService.folders.del({ id: folder.id }, function () {
var index = $scope.folders.indexOf(folder);
$scope.folders.splice(index, 1);
if (index > -1) {
$scope.folders.splice(index, 1);
}
});
};