From eef8a2a0f73794149d0ea88dbab65f2e8a47fc0a Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 8 Feb 2021 15:55:58 -0600 Subject: [PATCH] Do not evaluate callback function when testing existence (#266) --- src/angular/components/send/send.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular/components/send/send.component.ts b/src/angular/components/send/send.component.ts index ee521f1120d..214db867319 100644 --- a/src/angular/components/send/send.component.ts +++ b/src/angular/components/send/send.component.ts @@ -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;