@salesforcedevs/dx-components 0.10.1-alpha.128 → 0.10.1-alpha.129
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
|
@@ -37,7 +37,6 @@ export default class SidebarSearch extends LightningElement {
|
|
|
37
37
|
return this._coveoAdvancedQueryConfig;
|
|
38
38
|
}
|
|
39
39
|
set coveoAdvancedQueryConfig(value) {
|
|
40
|
-
console.log('QUERY CONFIG UPDATING', value)
|
|
41
40
|
this._coveoAdvancedQueryConfig = toJson(value);
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -96,6 +95,8 @@ export default class SidebarSearch extends LightningElement {
|
|
|
96
95
|
this.value = getSidebarSearchParams() || "";
|
|
97
96
|
}
|
|
98
97
|
|
|
98
|
+
queryConfigValue: string | null = null;
|
|
99
|
+
|
|
99
100
|
renderedCallback() {
|
|
100
101
|
// in prod some of the critical coveo configuration attributes seem to arrive later
|
|
101
102
|
// so I needed to put this coveo startup flow here where we can wait for them to arrive
|
|
@@ -115,6 +116,15 @@ export default class SidebarSearch extends LightningElement {
|
|
|
115
116
|
);
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
const queryConfigValue = JSON.stringify(this.coveoAdvancedQueryConfig);
|
|
120
|
+
if (this.queryConfigValue !== queryConfigValue) {
|
|
121
|
+
if (this.queryConfigValue && this.engine) {
|
|
122
|
+
console.log('setting query config again')
|
|
123
|
+
this.setAdvancedFilters(this.engine);
|
|
124
|
+
}
|
|
125
|
+
this.queryConfigValue = queryConfigValue;
|
|
126
|
+
}
|
|
127
|
+
|
|
118
128
|
// If this is the first render and there is a search value, trigger
|
|
119
129
|
// term highlighting
|
|
120
130
|
if (!this.didRender && this.value) {
|