ninegrid2 6.624.0 → 6.625.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.
@@ -241,7 +241,8 @@ class aiContainer extends HTMLElement
241
241
  #q1 = async () => {
242
242
  const filter = await this.#generateQdrantFilter();
243
243
  console.log(filter);
244
- const searchResults = ninegrid.filter(this.#getData(), filter);
244
+
245
+ const searchResults = (filter == {}) ? [] : ninegrid.filter(this.#getData(), filter);
245
246
 
246
247
  await this.#answer(searchResults);
247
248
  };
@@ -54408,7 +54408,8 @@ class aiContainer extends HTMLElement
54408
54408
  #q1 = async () => {
54409
54409
  const filter = await this.#generateQdrantFilter();
54410
54410
  console.log(filter);
54411
- const searchResults = ninegrid.filter(this.#getData(), filter);
54411
+
54412
+ const searchResults = (filter == {}) ? [] : ninegrid.filter(this.#getData(), filter);
54412
54413
 
54413
54414
  await this.#answer(searchResults);
54414
54415
  };
@@ -54404,7 +54404,8 @@ class aiContainer extends HTMLElement
54404
54404
  #q1 = async () => {
54405
54405
  const filter = await this.#generateQdrantFilter();
54406
54406
  console.log(filter);
54407
- const searchResults = ninegrid.filter(this.#getData(), filter);
54407
+
54408
+ const searchResults = (filter == {}) ? [] : ninegrid.filter(this.#getData(), filter);
54408
54409
 
54409
54410
  await this.#answer(searchResults);
54410
54411
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.624.0",
4
+ "version": "6.625.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -241,7 +241,8 @@ class aiContainer extends HTMLElement
241
241
  #q1 = async () => {
242
242
  const filter = await this.#generateQdrantFilter();
243
243
  console.log(filter);
244
- const searchResults = ninegrid.filter(this.#getData(), filter);
244
+
245
+ const searchResults = (filter == {}) ? [] : ninegrid.filter(this.#getData(), filter);
245
246
 
246
247
  await this.#answer(searchResults);
247
248
  };