1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

change to arrow function to maintain bindings (#13001)

This commit is contained in:
Jordan Aasen
2025-01-22 10:17:59 -08:00
committed by GitHub
parent e060371c6f
commit 5600bc01b0

View File

@@ -1068,7 +1068,7 @@ export class VaultComponent implements OnInit, OnDestroy {
} }
} }
async restore(c: CipherView): Promise<boolean> { restore = async (c: CipherView): Promise<boolean> => {
if (!c.isDeleted) { if (!c.isDeleted) {
return; return;
} }
@@ -1093,7 +1093,7 @@ export class VaultComponent implements OnInit, OnDestroy {
} catch (e) { } catch (e) {
this.logService.error(e); this.logService.error(e);
} }
} };
async bulkRestore(ciphers: CipherView[]) { async bulkRestore(ciphers: CipherView[]) {
if (ciphers.some((c) => !c.edit)) { if (ciphers.some((c) => !c.edit)) {