mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-22 22:32:57 +02:00
index checking
This commit is contained in:
parent
0050b570b4
commit
3f0ca412c6
|
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user