From 071e1b5455780e0481a95b87f3e28517f536e40b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 11 Jan 2021 10:59:54 -0500 Subject: [PATCH] LP1911023 Batch hold cancel refreshes before completion Ensure all hold cancelation promises complete before reporting the results back to the caller. Issue was result of thinko in the code that failed to relay one of the promises in the chain, so it reported promise completion prematurely. Signed-off-by: Bill Erickson Signed-off-by: Jason Boyer --- Open-ILS/src/eg2/src/app/staff/share/holds/cancel-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/cancel-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holds/cancel-dialog.component.ts index 2d6d790292..f69b1b45be 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holds/cancel-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holds/cancel-dialog.component.ts @@ -84,7 +84,7 @@ export class HoldCancelDialogComponent console.error(this.evt.parse(result)); this.toast.warning(await this.errorMsg.current()); } - this.cancelNext(ids); + return this.cancelNext(ids); } ); } -- 2.11.0