mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
reset folder id for ciphers. resolves #204
This commit is contained in:
@@ -294,6 +294,11 @@
|
||||
var index = $rootScope.vaultFolders.indexOf(folder);
|
||||
if (index > -1) {
|
||||
$rootScope.vaultFolders.splice(index, 1);
|
||||
for(var i = 0; i < $rootScope.vaultCiphers.length; i++) {
|
||||
if($rootScope.vaultCiphers[i].folderId === folder.id) {
|
||||
$rootScope.vaultCiphers[i].folderId = null;
|
||||
}
|
||||
}
|
||||
$scope.filterAll();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user