LP1882828: (follow-up) Add static parameter to ViewChild decorator
authorJason Boyer <JBoyer@equinoxinitiative.org>
Wed, 14 Oct 2020 16:11:27 +0000 (12:11 -0400)
committerJason Boyer <JBoyer@equinoxinitiative.org>
Wed, 14 Oct 2020 16:11:27 +0000 (12:11 -0400)
While not strictly required in rel_3_6 and above, rel_3_5 uses
a version of Angular that requires specifying a value for the
static parameter when using the ViewChild decorator on an object.

Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>

Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts

index ae4685d..9634042 100644 (file)
@@ -31,7 +31,7 @@ export class PullListComponent implements OnInit {
     @ViewChild('confirmCancelReservationDialog', { static: true })
         private cancelReservationDialog: CancelReservationDialogComponent;
 
-    @ViewChild('pullList') private pullList: GridComponent;
+    @ViewChild('pullList', { static: true }) private pullList: GridComponent;
 
     public dataSource: GridDataSource = new GridDataSource();