@salesforcedevs/docs-components 1.3.138-coveo-fix1 → 1.3.138-coveo-fix3

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/docs-components",
3
- "version": "1.3.138-coveo-fix1",
3
+ "version": "1.3.138-coveo-fix3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -144,21 +144,22 @@ export default class AmfReference extends LightningElement {
144
144
 
145
145
  @api
146
146
  get coveoAdvancedQueryConfig(): { [key: string]: any } {
147
- return this._coveoAdvancedQueryConfig;
148
- }
149
-
150
- set coveoAdvancedQueryConfig(config) {
151
- const coveoConfig = toJson(config);
147
+ const coveoConfig = this._coveoAdvancedQueryConfig;
152
148
  if (this.versions.length > 1 && this.selectedVersion) {
153
149
  const currentGAVersionRef = this.versions[0];
154
150
  if (this.selectedVersion.id !== currentGAVersionRef.id) {
155
151
  coveoConfig.version = this.selectedVersion.id.replace("v", "");
152
+ this._coveoAdvancedQueryConfig = coveoConfig;
156
153
  }
157
154
  }
158
- this._coveoAdvancedQueryConfig = coveoConfig;
159
155
  console.log(
160
156
  "AQ AMF Ref: " + JSON.stringify(this._coveoAdvancedQueryConfig)
161
157
  );
158
+ return this._coveoAdvancedQueryConfig;
159
+ }
160
+
161
+ set coveoAdvancedQueryConfig(config) {
162
+ this._coveoAdvancedQueryConfig = toJson(config);
162
163
  }
163
164
 
164
165
  // model