1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

fix bulk restore for unassigned items (#15533)

This commit is contained in:
Brandon Treston
2025-07-14 15:50:13 -04:00
committed by GitHub
parent e382bd6156
commit 4f84d6b0f6
4 changed files with 5 additions and 3 deletions

View File

@@ -1068,6 +1068,7 @@ export class VaultComponent implements OnInit, OnDestroy {
if (unassignedCiphers.length > 0 || editAccessCiphers.length > 0) {
await this.cipherService.restoreManyWithServer(
[...unassignedCiphers, ...editAccessCiphers],
this.userId,
this.organization.id,
);
}

View File

@@ -1029,7 +1029,8 @@ export class VaultComponent implements OnInit, OnDestroy {
return;
}
await this.cipherService.restoreManyWithServer(selectedCipherIds);
const activeUserId = await firstValueFrom(this.accountService.activeAccount$.pipe(getUserId));
await this.cipherService.restoreManyWithServer(selectedCipherIds, activeUserId);
this.toastService.showToast({
variant: "success",
title: null,