@salesforcedevs/dx-components 0.10.1-alpha.123 → 0.10.1-alpha.124
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
|
@@ -133,14 +133,14 @@ export default class SidebarSearch extends LightningElement {
|
|
|
133
133
|
try {
|
|
134
134
|
console.log('USE SESSION STORAGE')
|
|
135
135
|
const json = JSON.parse(stringified);
|
|
136
|
-
console.log(json.coveoAdvancedQueryConfig, this.coveoAdvancedQueryConfig, hasSameConfig)
|
|
137
136
|
const hasSameConfig = json.coveoAdvancedQueryConfig
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
.entries()
|
|
138
|
+
.every(
|
|
139
|
+
([key, value]: [string, string]) =>
|
|
140
|
+
this.coveoAdvancedQueryConfig[key] === value
|
|
142
141
|
);
|
|
143
|
-
|
|
142
|
+
const hasSameQuery = json?.state?.query?.q === this.value;
|
|
143
|
+
console.log(json.coveoAdvancedQueryConfig, this.coveoAdvancedQueryConfig, hasSameConfig)
|
|
144
144
|
if (hasSameConfig && hasSameQuery) {
|
|
145
145
|
console.log(
|
|
146
146
|
"valid session storage found for value =",
|