mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Do not evaluate callback function when testing existence (#266)
This commit is contained in:
@@ -169,12 +169,12 @@ export class SendComponent implements OnInit {
|
||||
this.actionPromise = this.sendService.deleteWithServer(s.id);
|
||||
await this.actionPromise;
|
||||
|
||||
if (this.onSuccessfulDelete() != null) {
|
||||
if (this.onSuccessfulDelete != null) {
|
||||
this.onSuccessfulDelete();
|
||||
} else {
|
||||
// Default actions
|
||||
this.platformUtilsService.showToast('success', null, this.i18nService.t('deletedSend'));
|
||||
await this.load();
|
||||
await this.refresh();
|
||||
}
|
||||
} catch { }
|
||||
this.actionPromise = null;
|
||||
|
||||
Reference in New Issue
Block a user