From: Jason Boyer Date: Wed, 14 Oct 2020 16:11:27 +0000 (-0400) Subject: LP1882828: (follow-up) Add static parameter to ViewChild decorator X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bfb50e64f7de29267e77392ece310b7eacb37e8b;p=evergreen%2Fpines.git LP1882828: (follow-up) Add static parameter to ViewChild decorator 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 --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts index ae4685da99..9634042b6b 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/pull-list.component.ts @@ -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();