myio-js-library 0.1.48 → 0.1.49

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.
package/dist/index.cjs CHANGED
@@ -7159,9 +7159,11 @@ var AllReportModal = class {
7159
7159
  });
7160
7160
  }
7161
7161
  if (this.searchFilter) {
7162
- filtered = filtered.filter(
7163
- (store) => store.name.toLowerCase().includes(this.searchFilter) || store.identifier.toLowerCase().includes(this.searchFilter)
7164
- );
7162
+ filtered = filtered.filter((store) => {
7163
+ const name = (store.name || "").toString().toLowerCase();
7164
+ const identifier = (store.identifier || "").toString().toLowerCase();
7165
+ return name.includes(this.searchFilter) || identifier.includes(this.searchFilter);
7166
+ });
7165
7167
  }
7166
7168
  return filtered.sort((a, b) => {
7167
7169
  const aVal = a[this.sortField];
package/dist/index.js CHANGED
@@ -7092,9 +7092,11 @@ var AllReportModal = class {
7092
7092
  });
7093
7093
  }
7094
7094
  if (this.searchFilter) {
7095
- filtered = filtered.filter(
7096
- (store) => store.name.toLowerCase().includes(this.searchFilter) || store.identifier.toLowerCase().includes(this.searchFilter)
7097
- );
7095
+ filtered = filtered.filter((store) => {
7096
+ const name = (store.name || "").toString().toLowerCase();
7097
+ const identifier = (store.identifier || "").toString().toLowerCase();
7098
+ return name.includes(this.searchFilter) || identifier.includes(this.searchFilter);
7099
+ });
7098
7100
  }
7099
7101
  return filtered.sort((a, b) => {
7100
7102
  const aVal = a[this.sortField];
@@ -7081,9 +7081,11 @@
7081
7081
  });
7082
7082
  }
7083
7083
  if (this.searchFilter) {
7084
- filtered = filtered.filter(
7085
- (store) => store.name.toLowerCase().includes(this.searchFilter) || store.identifier.toLowerCase().includes(this.searchFilter)
7086
- );
7084
+ filtered = filtered.filter((store) => {
7085
+ const name = (store.name || "").toString().toLowerCase();
7086
+ const identifier = (store.identifier || "").toString().toLowerCase();
7087
+ return name.includes(this.searchFilter) || identifier.includes(this.searchFilter);
7088
+ });
7087
7089
  }
7088
7090
  return filtered.sort((a, b) => {
7089
7091
  const aVal = a[this.sortField];