@energycap/components 0.36.3-ECAP-18589-scope-factor-searcher.20230728-1313 → 0.36.3-ECAP-18589-scope-factor-searcher.20230728-1620

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2601,7 +2601,7 @@ class ComboboxComponent extends FormControlBase {
2601
2601
  resetOptions(options) {
2602
2602
  this.filteredOptions = options || this.options;
2603
2603
  // do not count headings
2604
- this.filteredOptionCount = this.filteredOptions.filter(o => o.display !== 'heading').length;
2604
+ this.filteredOptionCount = this.filteredOptions?.filter(o => o.display !== 'heading').length || 0;
2605
2605
  //if they have no search term, don't try to select anything so they can clear the box out by hitting enter
2606
2606
  //if they have a search term and the options changed, select an option from the menu so they will get it automatically if they hit enter
2607
2607
  if (this.textboxFormModel.value !== '') {