LP1904036 Route dialog autoprint race condition repair
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / share / circ / route-dialog.component.ts
index f9aa4de..490e065 100644 (file)
@@ -95,7 +95,7 @@ export class RouteDialogComponent extends DialogComponent {
         if (this.checkin.params.auto_print_holds_transits
             || this.circ.suppressCheckinPopups) {
             // Print and exit.
-            return this.print().then(_ => true); // exit
+            return promise.then(_ => this.print()).then(_ => true); // exit
         }
 
         return promise.then(_ => false); // keep going