mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 05:53:42 +00:00
restore archived item from trash to archive (#18795)
This commit is contained in:
@@ -46,7 +46,9 @@ export class RestoreCommand {
|
||||
return Response.notFound();
|
||||
}
|
||||
|
||||
if (cipher.archivedDate && isArchivedVaultEnabled) {
|
||||
// Determine if restoring from archive or trash
|
||||
// When a cipher is archived and deleted, restore from the trash first
|
||||
if (cipher.archivedDate && cipher.deletedDate == null && isArchivedVaultEnabled) {
|
||||
return this.restoreArchivedCipher(cipher, activeUserId);
|
||||
} else {
|
||||
return this.restoreDeletedCipher(cipher, activeUserId);
|
||||
|
||||
Reference in New Issue
Block a user