@pristy/pristy-libvue 0.20.2 → 0.20.3

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.
@@ -6952,7 +6952,7 @@ const Lu = new su(), Yu = Ie({
6952
6952
  },
6953
6953
  include: this.include,
6954
6954
  paging: this.paging,
6955
- filterQueries: this.filterQueries,
6955
+ filterQueries: this.filterQueries.map((M) => ({ query: M.query })),
6956
6956
  facetQueries: this.facetQueries,
6957
6957
  facetFields: { facets: this.facets },
6958
6958
  sort: [{ type: "FIELD", field: "score", ascending: !1 }],
@@ -6963,13 +6963,13 @@ const Lu = new su(), Yu = Ie({
6963
6963
  });
6964
6964
  },
6965
6965
  addFilterQuery(t) {
6966
- return this.filterQueries.find((e) => e.query === t.filterQuery) ? !1 : (this.filterQueries.push({
6966
+ return t.filterQuery ? this.filterQueries.find((e) => e.query === t.filterQuery) ? !1 : (this.filterQueries.push({
6967
6967
  query: t.filterQuery,
6968
6968
  label: t.label
6969
- }), !0);
6969
+ }), !0) : (console.warn("filterQuery is undifined"), !1);
6970
6970
  },
6971
6971
  removeFilterQuery(t) {
6972
- this.filterQueries = this.filterQueries.filter((e) => e.query !== t.filterQuery);
6972
+ this.filterQueries = this.filterQueries.filter((e) => e.query !== t.query);
6973
6973
  },
6974
6974
  addField(t) {
6975
6975
  return this.fields.find((e) => e.value === t.filterQuery) ? !1 : (this.fields.push({