From 414a30e14d5dc02970a2a1e1741171fca13fc1d6 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 14 Dec 2022 00:52:37 -0500 Subject: [PATCH] lp1857911 prevent some uncaught exceptions with grids Signed-off-by: Jason Etheridge --- Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } } -- 2.11.0