@salesforcedevs/dx-components 0.10.1-alpha.135 → 0.10.1-alpha.136

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.10.1-alpha.135",
3
+ "version": "0.10.1-alpha.136",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -37,19 +37,20 @@ export default class SidebarSearch extends LightningElement {
37
37
  return this._coveoAdvancedQueryConfig;
38
38
  }
39
39
  set coveoAdvancedQueryConfig(value: string) {
40
+ const hasChanged =
41
+ this._coveoAdvancedQueryConfigValue &&
42
+ value !== this._coveoAdvancedQueryConfigValue;
40
43
  this._coveoAdvancedQueryConfig = toJson(value);
44
+ this._coveoAdvancedQueryConfigValue = value;
41
45
 
42
- if (
43
- this._coveoAdvancedQueryConfigValue &&
44
- value !== this._coveoAdvancedQueryConfigValue &&
45
- this.engine
46
- ) {
46
+ console.log({ hasChanged }, this._coveoAdvancedQueryConfigValue, value);
47
+
48
+ if (hasChanged && this.engine) {
47
49
  // set adnvanced filters needs access to the latest coveoAdvancedQueryConfig
50
+ this.dispatchOnLoading(true);
48
51
  this.setAdvancedFilters(this.engine);
49
52
  this.submitSearch();
50
53
  }
51
-
52
- this._coveoAdvancedQueryConfigValue = value;
53
54
  }
54
55
 
55
56
  @api