LP2000482 Silence some page load errors
authorBill Erickson <berickxx@gmail.com>
Tue, 27 Dec 2022 17:45:04 +0000 (12:45 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 27 Dec 2022 17:45:15 +0000 (12:45 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-filter-control.component.ts

index e5add56..6989361 100644 (file)
@@ -337,8 +337,12 @@ 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(); }
     }