@salesforcedevs/dx-components 0.23.0-alpha.3 → 0.23.0-alpha.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.23.0-alpha.3",
3
+ "version": "0.23.0-alpha.4",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -44,6 +44,7 @@ export default class SidebarSearch extends LightningElement {
44
44
  set coveoAdvancedQueryConfig(value) {
45
45
  const jsonValue = toJson(value);
46
46
  const hasChanged =
47
+ this.engine &&
47
48
  this._coveoAdvancedQueryConfig &&
48
49
  Object.entries(jsonValue).some(
49
50
  ([key, val]: [string, any]) =>
@@ -51,10 +52,12 @@ export default class SidebarSearch extends LightningElement {
51
52
  );
52
53
  this._coveoAdvancedQueryConfig = jsonValue;
53
54
 
55
+ if (hasChanged && this.engine && this.value !== "") {
56
+ this.dispatchOnLoading(true);
57
+ }
58
+
54
59
  if (hasChanged && this.engine) {
55
60
  // set advanced filters needs access to the latest coveoAdvancedQueryConfig
56
- console.log('dispatching in the query change')
57
- this.dispatchOnLoading(true);
58
61
  this.setAdvancedFilters(this.engine);
59
62
  this.submitSearch(true);
60
63
  }