From: Jason Etheridge Date: Wed, 14 Dec 2022 05:52:37 +0000 (-0500) Subject: lp1857911 prevent some uncaught exceptions with grids X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2a6b6d5f8eb9dbbf1030521b6392a95a3d7cd9cc;p=working%2FEvergreen.git lp1857911 prevent some uncaught exceptions with grids Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts index e5add56623..7c88ac112f 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts @@ -337,8 +337,8 @@ export class GridFilterControlComponent implements OnInit { } reset() { - this.filterComboboxes.forEach(ctl => { ctl.applyEntryId(null); }); - this.orgSelects.forEach(ctl => { ctl.reset(); }); + if (this.filterComboboxes) { this.filterComboboxes.forEach(ctl => { ctl.applyEntryId(null); }); } + if (this.orgSelects) { this.orgSelects.forEach(ctl => { ctl.reset(); }); } if (this.dateSelectOne) { this.dateSelectOne.reset(); } if (this.dateSelectTwo) { this.dateSelectTwo.reset(); } }