ninegrid2 6.196.0 → 6.198.0

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.
@@ -18500,7 +18500,7 @@ class ngFilterPanel extends HTMLElement
18500
18500
 
18501
18501
  //console.log(idx);
18502
18502
 
18503
- if (idx >= 0) {
18503
+ if (idx >= 0 && filterOption.data.length > 0) {
18504
18504
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
18505
18505
  }
18506
18506
  });
@@ -18498,7 +18498,7 @@ class ngFilterPanel extends HTMLElement
18498
18498
 
18499
18499
  //console.log(idx);
18500
18500
 
18501
- if (idx >= 0) {
18501
+ if (idx >= 0 && filterOption.data.length > 0) {
18502
18502
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
18503
18503
  }
18504
18504
  });
@@ -570,7 +570,7 @@ class ngFilterPanel extends HTMLElement
570
570
 
571
571
  //console.log(idx);
572
572
 
573
- if (idx >= 0) {
573
+ if (idx >= 0 && filterOption.data.length > 0) {
574
574
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
575
575
  }
576
576
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.196.0",
4
+ "version": "6.198.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -570,7 +570,7 @@ class ngFilterPanel extends HTMLElement
570
570
 
571
571
  //console.log(idx);
572
572
 
573
- if (idx >= 0) {
573
+ if (idx >= 0 && filterOption.data.length > 0) {
574
574
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
575
575
  }
576
576
  });