mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
change to arrow function to maintain bindings (#13001)
This commit is contained in:
@@ -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) {
|
||||
return;
|
||||
}
|
||||
@@ -1093,7 +1093,7 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
async bulkRestore(ciphers: CipherView[]) {
|
||||
if (ciphers.some((c) => !c.edit)) {
|
||||
|
||||
Reference in New Issue
Block a user